mirror of
https://github.com/RGBCube/ncc
synced 2025-07-31 12:07:48 +00:00
Use --wrapped for nu
This commit is contained in:
parent
cbf498acb7
commit
249e1eae58
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue