Start safe redis commandline application

This commit is contained in:
Christine Dodrill 2015-06-13 01:16:48 -07:00
parent 200822388f
commit caea06bacc
3 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,5 @@
.gitignore
include_rules
: deps-commandeer |> yes | nimble install commandeer > ./nimble-commandeer.log |> nimble-commandeer.log
: saferediscli.nim | nimble-commandeer.log |> !nim |> ../../bin/safe-redis-cli

View File

View File

@ -0,0 +1,11 @@
import commandeer, rawsockets
commandline:
option hostname, string, "hostname", "h"
option optPort, int, "port", "p"
option admin, bool, "admin", ""
exitoption "help", "h",
"Usage: redis-cli [--help|--hostname=<string>|--port=<int>|--admin]"
errormsg "Invalid options: please read help."