Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: George Lemon <[email protected]>
  • Loading branch information
georgelemon committed Apr 23, 2024
1 parent 053b497 commit a65d8be
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions kapsis.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ requires "checksums"
requires "https://github.com/openpeeps/voodoo"
requires "pixie"
requires "valido"
requires "spinny#head"
requires "nancy"
requires "termstyle"

task dev, "dev mode":
exec "nim c --mm:arc --threads:on -o:./bin/kapsis src/kapsis.nim"
Expand Down
6 changes: 3 additions & 3 deletions src/kapsis/app.nim
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ proc printUsage*(showExtras = false, showCommand = "",
cmd.outputCommand(output, cmdlen, true)
else:
add output, ("", "")
add output[0][0], cmd.desc
add output[0][0], "\e[90m" & cmd.desc & "\e[0m"
for subk, subcmd in cmd.list:
add output, ("", "")
add cmdlen, subcmd.id.len
Expand All @@ -225,8 +225,8 @@ proc printUsage*(showExtras = false, showCommand = "",
add output, ("", "")
add output[^1][0], "\e[1m" & cmd.label & "\e[0m"
of ctCmdDir:
add output, ("", "")
add cmdlen, id.len
add output, ("", "\e[90m" & cmd.desc & "\e[0m")
add cmdlen, cmd.idDir.len + 4
add output[^1][0], cmd.idDir
let icon =
if showExtras: ""
Expand Down
4 changes: 4 additions & 0 deletions src/kapsis/cli.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import std/[macros, terminal]
import pkg/valido

import pkg/termstyle
import pkg/[nancy, spinny, spinny/spinners]
export nancy, spinny, spinners, termstyle

# include std/terminalstyledEchoProcessArg

from std/strutils import `%`, spaces, indent
Expand Down

0 comments on commit a65d8be

Please sign in to comment.