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 case key
of "help", "h": of "help", "h":
case command case command
of "code": code.help() of "code":
of "newSecretSecret": newSecret.help() code.help()
of "ls": ls.help() of "newSecret":
newSecret.help()
of "ls":
ls.help()
else: else:
writeHelp() writeHelp()
@ -77,9 +80,12 @@ if not existsDir(totpRoot):
echo "Created totp root " & totpRoot echo "Created totp root " & totpRoot
case command case command
of "code": code totpRoot, args of "code":
of "newSecretSecret": newSecret totpRoot, args code(totpRoot, args)
of "ls": ls totpRoot, args of "newSecret":
newSecret(totpRoot, args)
of "ls":
ls(totpRoot, args)
else: else:
echo "Command " & command & " not found." echo "Command " & command & " not found."
writeHelp() writeHelp()