mirror of
https://github.com/daylinmorgan/hwylterm.git
synced 2024-12-22 03:00:43 -06:00
Compare commits
2 commits
5c71355b5f
...
773f393e3d
Author | SHA1 | Date | |
---|---|---|---|
773f393e3d | |||
6ac0d838be |
2 changed files with 7 additions and 7 deletions
|
@ -21,14 +21,15 @@ task docs, "Deploy doc html + search index to public/ directory":
|
||||||
let
|
let
|
||||||
deployDir = getCurrentDir() / "public"
|
deployDir = getCurrentDir() / "public"
|
||||||
pkgName = "hwylterm"
|
pkgName = "hwylterm"
|
||||||
gitFlags = fmt"--git.url:'https://github.com/daylinmorgan/{pkgName}' --git.commit:main"
|
gitFlags = fmt"--git.url:'https://github.com/daylinmorgan/{pkgName}' --git.commit:main --git.devel:main"
|
||||||
|
docCmd = fmt"doc {gitFlags} --index:on --outdir:{deployDir}"
|
||||||
when defined(clean):
|
when defined(clean):
|
||||||
echo fmt"clearing {deployDir}"
|
echo fmt"clearing {deployDir}"
|
||||||
rmDir deployDir
|
rmDir deployDir
|
||||||
for module in ["cligen", "chooser", "logging", "cli"]:
|
for module in ["cligen", "chooser", "logging", "cli"]:
|
||||||
selfExec fmt"doc --docRoot:{getCurrentDir()}/src/ --index:on --outdir:{deployDir} src/hwylterm/{module}"
|
selfExec fmt"{docCmd} --docRoot:{getCurrentDir()}/src/ src/hwylterm/{module}"
|
||||||
selfExec fmt"doc --project --index:on {gitFlags} --outdir:{deployDir} --project src/{pkgName}.nim"
|
selfExec fmt"{docCmd} --project --project src/{pkgName}.nim"
|
||||||
docFixup(deployDir,pkgName)
|
docFixup(deployDir, pkgName)
|
||||||
|
|
||||||
when withDir(thisDir(), system.dirExists("nimbledeps")):
|
when withDir(thisDir(), system.dirExists("nimbledeps")):
|
||||||
--path:"./nimbledeps/pkgs2/cligen-1.7.5-f3ffe7329c8db755677d3ca377d02ff176cec8b1"
|
--path:"./nimbledeps/pkgs2/cligen-1.7.5-f3ffe7329c8db755677d3ca377d02ff176cec8b1"
|
||||||
|
|
|
@ -127,11 +127,11 @@ proc choose*[T](things: openArray[T], height: Natural = 6): seq[T] =
|
||||||
|
|
||||||
|
|
||||||
when isMainModule:
|
when isMainModule:
|
||||||
import std/[parseopt, strformat]
|
import std/[parseopt]
|
||||||
import ./cli
|
import ./cli
|
||||||
|
|
||||||
proc writeHelp() =
|
proc writeHelp() =
|
||||||
let cli = newHwylCli(
|
echo newHwylCli(
|
||||||
"[bold]hwylchoose[/] [[[green]args...[/]] [[[faint]-h[/]]",
|
"[bold]hwylchoose[/] [[[green]args...[/]] [[[faint]-h[/]]",
|
||||||
"""
|
"""
|
||||||
hwylchoose a b c d
|
hwylchoose a b c d
|
||||||
|
@ -143,7 +143,6 @@ hwylchoose a,b,c,d --seperator ","
|
||||||
("s", "seperator", "seperator to split items"),
|
("s", "seperator", "seperator to split items"),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
echo cli
|
|
||||||
|
|
||||||
var
|
var
|
||||||
posArgs: seq[string]
|
posArgs: seq[string]
|
||||||
|
|
Loading…
Reference in a new issue