Start safe redis commandline application
This commit is contained in:
parent
200822388f
commit
caea06bacc
|
@ -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
|
|
@ -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."
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue