nixos-container: add missing restart command
The original pull request didn't add `restart` to the list of available commands. See: https://github.com/NixOS/nixpkgs/pull/39717
This commit is contained in:
parent
1afd51dece
commit
554a7c100a
2 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,7 @@ _nixos-container() {
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||||
opts="list create destroy start stop status update login root-login run show-ip show-host-key"
|
opts="list create destroy restart start stop status update login root-login run show-ip show-host-key"
|
||||||
startstop_opts=$(nixos-container list)
|
startstop_opts=$(nixos-container list)
|
||||||
update_opts="--config"
|
update_opts="--config"
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,7 @@ Usage: nixos-container list
|
||||||
[--host-address <string>]
|
[--host-address <string>]
|
||||||
[--local-address <string>]
|
[--local-address <string>]
|
||||||
nixos-container destroy <container-name>
|
nixos-container destroy <container-name>
|
||||||
|
nixos-container restart <container-name>
|
||||||
nixos-container start <container-name>
|
nixos-container start <container-name>
|
||||||
nixos-container stop <container-name>
|
nixos-container stop <container-name>
|
||||||
nixos-container terminate <container-name>
|
nixos-container terminate <container-name>
|
||||||
|
|
Loading…
Reference in a new issue