Skip to content

Commit

Permalink
update CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethosa committed Jul 8, 2024
1 parent f6af416 commit f4ee8d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/happyx/cli/help_command.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ proc mainHelpMessage*() =
## Shows the general help message that describes
let
subcommands = [
"build", "dev", "serve", "create", "html2tag", "update", "info", "flags", "help"
"build", "dev", "serve", "create", "html2tag", "update", "info", "flags", "translate-csv", "help"
]
logoColors = [
fgBlue, fgGreen, fgYellow, fgWhite, fgCyan
Expand Down
8 changes: 8 additions & 0 deletions src/happyx/hpx.nim
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,14 @@ when isMainModule:
styledEcho fgBlue, "HappyX", fgMagenta, " flags ", fgWhite, "command displays all HappyX Nim flags."
styledEcho "\nUsage:"
styledEcho fgMagenta, " hpx flags"
of "translate-csv":
styledEcho fgBlue, "HappyX", fgMagenta, " flags ", fgWhite, "command displays all HappyX Nim flags."
styledEcho "\nUsage:"
styledEcho fgMagenta, " hpx translate-csv --filename translations.csv"
styledEcho "Arguments:"
styledEcho fgBlue, align("filename", 8), "|f", fgWhite, " - Input file (ex. --filename:translations.csv)"
styledEcho "Optional rguments:"
styledEcho fgBlue, align("output", 8), "|o", fgWhite, " - Output file (ex. --output:translations.nim)"
else:
styledEcho fgRed, "Unknown subcommand: ", fgWhite, subcmdHelp
shutdownCli()
Expand Down

0 comments on commit f4ee8d1

Please sign in to comment.