From 66b020c3695e222844c580e8f2afa935f672be29 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Fri, 27 Sep 2024 15:01:05 -0500 Subject: [PATCH] rename cli to cligen break all my own packages yay --- config.nims | 4 +++- src/hwylterm.nim | 4 ++-- src/hwylterm/{cli.nim => cligen.nim} | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) rename src/hwylterm/{cli.nim => cligen.nim} (98%) 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".}