mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 19:47:47 +00:00
Update readme.md docs
This commit is contained in:
parent
de44fe0372
commit
46056634ac
2 changed files with 2 additions and 20 deletions
20
README.md
20
README.md
|
@ -32,25 +32,7 @@ to your system. You would have to run the rebuild script:
|
||||||
|
|
||||||
This runs the script interactively.
|
This runs the script interactively.
|
||||||
|
|
||||||
You can also check how the script is used:
|
You can also check how the script is used by reading the parameters it takes.
|
||||||
|
|
||||||
```sh
|
|
||||||
./rebuild.nu --help
|
|
||||||
```
|
|
||||||
|
|
||||||
This outputs:
|
|
||||||
|
|
||||||
```
|
|
||||||
Usage:
|
|
||||||
> rebuild.nu (host) ...(arguments)
|
|
||||||
|
|
||||||
Flags:
|
|
||||||
-h, --help - Display the help message for this command
|
|
||||||
|
|
||||||
Parameters:
|
|
||||||
host <string>: The host to build. (optional, default: '')
|
|
||||||
...arguments <any>: The arguments to pass to `nix system apply`.
|
|
||||||
```
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ def complete [] {
|
||||||
|
|
||||||
def main --wrapped [
|
def main --wrapped [
|
||||||
host: string@complete = "" # The host to build.
|
host: string@complete = "" # The host to build.
|
||||||
...arguments # The arguments to pass to `nix system apply`.
|
...arguments # The arguments to pass to `nixos-rebuild switch`.
|
||||||
] {
|
] {
|
||||||
let flags = [
|
let flags = [
|
||||||
$"--flake ('.#' + $host)"
|
$"--flake ('.#' + $host)"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue