fix newSecret

This commit is contained in:
Christine Dodrill 2015-09-25 14:00:02 -07:00
parent 979376a63e
commit eef007ef67
1 changed files with 12 additions and 6 deletions

View File

@ -55,9 +55,12 @@ for kind, key, val in getopt():
case key
of "help", "h":
case command
of "code": code.help()
of "newSecretSecret": newSecret.help()
of "ls": ls.help()
of "code":
code.help()
of "newSecret":
newSecret.help()
of "ls":
ls.help()
else:
writeHelp()
@ -77,9 +80,12 @@ if not existsDir(totpRoot):
echo "Created totp root " & totpRoot
case command
of "code": code totpRoot, args
of "newSecretSecret": newSecret totpRoot, args
of "ls": ls totpRoot, args
of "code":
code(totpRoot, args)
of "newSecret":
newSecret(totpRoot, args)
of "ls":
ls(totpRoot, args)
else:
echo "Command " & command & " not found."
writeHelp()