Compare commits

..

No commits in common. "master" and "commander" have entirely different histories.

3 changed files with 10 additions and 0 deletions

View File

@ -9,6 +9,9 @@ name in the secret store.
"""
proc code*(root: string, args: seq[string]) =
if args.len != 1:
quit "I need a machine name"
try:
var
keyFileName = args[0]

View File

@ -17,6 +17,9 @@ available for `totptool code` instantly.
"""
proc newSecret*(root: string, args: seq[string]) =
if args.len != 1:
quit "I need a machine name"
var
res = generateUUID()[0 .. 19]
body: string

View File

@ -27,6 +27,10 @@ Subcommands:
totptool tracks
"""
proc writeHelp() =
echo usageHelp
quit 2
proc writeVersion(): string =
const
gitlog = staticExec "git log -1"