Last active
August 29, 2015 14:14
-
-
Save Gonzih/ae8cc0379a01523ee97d to your computer and use it in GitHub Desktop.
HDFS repl thingy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import rdstdin | |
import os | |
import strutils | |
while true: | |
let input = readLineFromStdin "> " | |
case input | |
of "qq": | |
quit "Bye" | |
else: | |
discard execShellCmd "hdfs dfs -$1" % [input] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment