mirror of
https://github.com/daylinmorgan/hwylterm.git
synced 2024-12-21 18:50:44 -06:00
rename cli to cligen
break all my own packages yay
This commit is contained in:
parent
6609592539
commit
66b020c369
3 changed files with 6 additions and 4 deletions
|
@ -22,7 +22,9 @@ task docs, "Deploy doc html + search index to public/ directory":
|
||||||
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"
|
||||||
for module in ["cli", "chooser"]:
|
when defined(clean):
|
||||||
|
rmDir deployDir
|
||||||
|
for module in ["cligen", "chooser"]:
|
||||||
selfExec fmt"doc --docRoot:{getCurrentDir()}/src/ --index:on --outdir:{deployDir} src/hwylterm/{module}"
|
selfExec fmt"doc --docRoot:{getCurrentDir()}/src/ --index:on --outdir:{deployDir} src/hwylterm/{module}"
|
||||||
selfExec fmt"doc --project --index:on {gitFlags} --outdir:{deployDir} --project src/{pkgName}.nim"
|
selfExec fmt"doc --project --index:on {gitFlags} --outdir:{deployDir} --project src/{pkgName}.nim"
|
||||||
docFixup(deployDir,pkgName)
|
docFixup(deployDir,pkgName)
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
##[
|
##[
|
||||||
# Hwylterm
|
# Hwylterm
|
||||||
|
|
||||||
see also these utility modules:
|
see also these utility modules with extra dependencies:
|
||||||
|
|
||||||
- [cli](./hwylterm/cli.html), requires [cligen](https://github.com/c-blake/cligen)
|
- [cligen adapter](./hwylterm/cligen.html), requires [cligen](https://github.com/c-blake/cligen)
|
||||||
- [chooser](./hwylterm/chooser.html), requires [illwill](https://github.com/johnnovak/illwill)
|
- [chooser](./hwylterm/chooser.html), requires [illwill](https://github.com/johnnovak/illwill)
|
||||||
]##
|
]##
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import ./bbansi
|
||||||
|
|
||||||
template tryImport*(x, body) =
|
template tryImport*(x, body) =
|
||||||
when not (compiles do: import x): body else: import x
|
when not (compiles do: import x): body else: import x
|
||||||
tryImport cligen:
|
tryImport pkg/cligen:
|
||||||
{.fatal: "hwylterm/cli requires cligen>=1.7.5".}
|
{.fatal: "hwylterm/cli requires cligen>=1.7.5".}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue