diff --git a/config.nims b/config.nims index 30c69fc..34d2b0b 100644 --- a/config.nims +++ b/config.nims @@ -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) diff --git a/src/hwylterm.nim b/src/hwylterm.nim index 5ad6cf9..86d98dd 100644 --- a/src/hwylterm.nim +++ b/src/hwylterm.nim @@ -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) ]## diff --git a/src/hwylterm/cli.nim b/src/hwylterm/cligen.nim similarity index 98% rename from src/hwylterm/cli.nim rename to src/hwylterm/cligen.nim index 52f937e..fb4745a 100644 --- a/src/hwylterm/cli.nim +++ b/src/hwylterm/cligen.nim @@ -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".}