mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 01:50:44 -06:00
replace readme help
This commit is contained in:
parent
59c9fe94a5
commit
d1921985b3
2 changed files with 13 additions and 26 deletions
32
README.md
32
README.md
|
@ -55,30 +55,18 @@ nix run "github:daylinmorgan/oizys"
|
||||||
|
|
||||||
```
|
```
|
||||||
nix begat oizys
|
nix begat oizys
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
oizys [command]
|
oizys {SUBCMD} [sub-command options & parameters]
|
||||||
|
|
||||||
Available Commands:
|
subcommands:
|
||||||
build nix build
|
help print comprehensive or per-cmd help
|
||||||
cache build and push to cachix
|
build nix build
|
||||||
checks nix build checks
|
cache build and push to cachix
|
||||||
ci offload build to GHA
|
ci trigger GHA update flow
|
||||||
dry poor man's nix flake check
|
dry dry run build
|
||||||
help Help about any command
|
os nixos-rebuild
|
||||||
os nixos-rebuild wrapper
|
output output
|
||||||
output show nixosConfiguration attr
|
update update and run nixos-rebuild
|
||||||
update update and run nixos rebuild
|
|
||||||
|
|
||||||
Flags:
|
|
||||||
--debug show debug output
|
|
||||||
--flake string path to flake ($OIZYS_DIR or $HOME/oizys)
|
|
||||||
-h, --help help for oizys
|
|
||||||
--host string host(s) to build (current host)
|
|
||||||
--reset-cache set narinfo-cache-negative-ttl to 0
|
|
||||||
-v, --verbose show verbose output
|
|
||||||
|
|
||||||
Use "oizys [command] --help" for more information about a command.
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## oizys?
|
## oizys?
|
||||||
|
|
|
@ -95,10 +95,9 @@ proc setupCligen() =
|
||||||
let isColor = getEnv("NO_COLOR") == ""
|
let isColor = getEnv("NO_COLOR") == ""
|
||||||
if clCfg.useMulti == "":
|
if clCfg.useMulti == "":
|
||||||
clCfg.useMulti =
|
clCfg.useMulti =
|
||||||
if isColor:
|
if isColor: "${doc}\e[1mUsage\e[m:\n $command {SUBCMD} [sub-command options & parameters]\n\n\e[1msubcommands\e[m:\n$subcmds"
|
||||||
"${doc}\e[1mUsage\e[m:\n $command {SUBCMD} [sub-command options & parameters]\n\n\e[1msubcommands\e[m:\n$subcmds"
|
else: "${doc}Usage:\n $command {SUBCMD} [sub-command options & parameters]\n\nsubcommands:\n$subcmds"
|
||||||
else:
|
|
||||||
"${doc}Usage:\n $command {SUBCMD} [sub-command options & parameters]\n\nsubcommands:\n$subcmds"
|
|
||||||
if not isColor: return
|
if not isColor: return
|
||||||
if clCfg.helpAttr.len == 0:
|
if clCfg.helpAttr.len == 0:
|
||||||
clCfg.helpAttr = {"cmd": "\e[1;36m", "clDescrip": "", "clDflVal": "\e[33m",
|
clCfg.helpAttr = {"cmd": "\e[1;36m", "clDescrip": "", "clDflVal": "\e[33m",
|
||||||
|
|
Loading…
Reference in a new issue