fix newSecret
This commit is contained in:
parent
979376a63e
commit
eef007ef67
18
totptool.nim
18
totptool.nim
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue