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:
Donovan Glover 2023-07-20 18:23:09 -04:00
parent 1afd51dece
commit 554a7c100a
No known key found for this signature in database
GPG key ID: EA7408A77AE1BE65
2 changed files with 2 additions and 1 deletions

View file

@ -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"

View file

@ -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>