rename cli to cligen

break all my own packages yay
This commit is contained in:
Daylin Morgan 2024-09-27 15:01:05 -05:00
parent 6609592539
commit 66b020c369
Signed by: daylin
GPG key ID: 950D13E9719334AD
3 changed files with 6 additions and 4 deletions

View file

@ -22,7 +22,9 @@ task docs, "Deploy doc html + search index to public/ directory":
deployDir = getCurrentDir() / "public"
pkgName = "hwylterm"
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 --project --index:on {gitFlags} --outdir:{deployDir} --project src/{pkgName}.nim"
docFixup(deployDir,pkgName)

View file

@ -1,9 +1,9 @@
##[
# 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)
]##

View file

@ -9,7 +9,7 @@ import ./bbansi
template tryImport*(x, body) =
when not (compiles do: import x): body else: import x
tryImport cligen:
tryImport pkg/cligen:
{.fatal: "hwylterm/cli requires cligen>=1.7.5".}