mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-15 00:07:54 -06:00
use more flag groups
This commit is contained in:
parent
3cab71f282
commit
0446dacc1a
1 changed files with 17 additions and 18 deletions
|
@ -8,6 +8,7 @@ proc checkExes() =
|
||||||
fatalQuit "oizys requires nix"
|
fatalQuit "oizys requires nix"
|
||||||
|
|
||||||
checkexes()
|
checkexes()
|
||||||
|
|
||||||
hwylCli:
|
hwylCli:
|
||||||
name "oizys"
|
name "oizys"
|
||||||
flags:
|
flags:
|
||||||
|
@ -24,6 +25,16 @@ hwylCli:
|
||||||
T bool
|
T bool
|
||||||
? "set cache timeout to 0"
|
? "set cache timeout to 0"
|
||||||
- r
|
- r
|
||||||
|
[yes]
|
||||||
|
yes:
|
||||||
|
T bool
|
||||||
|
? "skip all confirmation prompts"
|
||||||
|
[minimal]
|
||||||
|
minimal:
|
||||||
|
T bool
|
||||||
|
? "set minimal"
|
||||||
|
- m
|
||||||
|
|
||||||
preSub:
|
preSub:
|
||||||
setupLoggers(debug)
|
setupLoggers(debug)
|
||||||
updateContext(host, flake, debug, resetCache)
|
updateContext(host, flake, debug, resetCache)
|
||||||
|
@ -32,10 +43,7 @@ hwylCli:
|
||||||
--- build
|
--- build
|
||||||
... "nix build"
|
... "nix build"
|
||||||
flags:
|
flags:
|
||||||
minimal:
|
^[minimal]
|
||||||
T bool
|
|
||||||
? "set minimal"
|
|
||||||
- m
|
|
||||||
run:
|
run:
|
||||||
nixBuild(minimal, args)
|
nixBuild(minimal, args)
|
||||||
|
|
||||||
|
@ -43,15 +51,15 @@ hwylCli:
|
||||||
... "build and push store paths"
|
... "build and push store paths"
|
||||||
flags:
|
flags:
|
||||||
name:
|
name:
|
||||||
* "oizys"
|
|
||||||
? "name of binary cache"
|
? "name of binary cache"
|
||||||
|
* "oizys"
|
||||||
service:
|
service:
|
||||||
? "name of cache service"
|
? "name of cache service"
|
||||||
* "attic"
|
* "attic"
|
||||||
jobs:
|
jobs:
|
||||||
* countProcessors()
|
|
||||||
? "jobs when pushing paths"
|
|
||||||
T int
|
T int
|
||||||
|
? "jobs when pushing paths"
|
||||||
|
* countProcessors()
|
||||||
- j
|
- j
|
||||||
run:
|
run:
|
||||||
nixBuildWithCache(name, args, service, jobs)
|
nixBuildWithCache(name, args, service, jobs)
|
||||||
|
@ -69,10 +77,7 @@ hwylCli:
|
||||||
--- dry
|
--- dry
|
||||||
... "dry run build"
|
... "dry run build"
|
||||||
flags:
|
flags:
|
||||||
minimal:
|
^[minimal]
|
||||||
T bool
|
|
||||||
? "set minimal"
|
|
||||||
- m
|
|
||||||
run:
|
run:
|
||||||
nixBuildHostDry(minimal, args)
|
nixBuildHostDry(minimal, args)
|
||||||
|
|
||||||
|
@ -91,19 +96,13 @@ hwylCli:
|
||||||
|
|
||||||
--- output
|
--- output
|
||||||
... "nixos config attr"
|
... "nixos config attr"
|
||||||
flags:
|
|
||||||
yes:
|
|
||||||
T bool
|
|
||||||
? "skip all confirmation prompts"
|
|
||||||
run:
|
run:
|
||||||
echo nixosConfigAttrs().join(" ")
|
echo nixosConfigAttrs().join(" ")
|
||||||
|
|
||||||
--- update
|
--- update
|
||||||
... "update and run nixos-rebuild"
|
... "update and run nixos-rebuild"
|
||||||
flags:
|
flags:
|
||||||
yes:
|
^[yes]
|
||||||
T bool
|
|
||||||
? "skip all confirmation prompts"
|
|
||||||
preview:
|
preview:
|
||||||
T bool
|
T bool
|
||||||
? "show preview and exit"
|
? "show preview and exit"
|
||||||
|
|
Loading…
Reference in a new issue