1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-08-01 20:47:48 +00:00

Use --wrapped for nu

This commit is contained in:
RGBCube 2023-12-05 17:54:53 +03:00
parent cbf498acb7
commit 249e1eae58
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ $env.ENV_CONVERSIONS.PATH = {
} }
} }
def hx [...arguments] { def --wrapped hx [...arguments] {
kitty @ set-spacing padding=0 kitty @ set-spacing padding=0
^hx $arguments ^hx $arguments

View file

@ -4,9 +4,9 @@ def complete [] {
ls machines ls machines
} }
def main [ def main --wrapped [
machine: string@complete = "" # The machine to build. machine: string@complete = "" # The machine to build.
--no-trace # Wheter to not show the full trace. ...arguments
] { ] {
mut machine_ = $machine mut machine_ = $machine
@ -29,5 +29,5 @@ def main [
} }
sudo --validate sudo --validate
sh -c $"sudo nixos-rebuild switch (if not $no_trace { --show-trace } else {}) --log-format internal-json --impure --flake ('.#' + $machine) |& nom --json" sh -c $"sudo nixos-rebuild switch ($arguments | str join ' ') --log-format internal-json --impure --flake ('.#' + $machine) |& nom --json"
} }