Skip to content

Commit

Permalink
nixos-container: add missing restart command
Browse files Browse the repository at this point in the history
The original pull request didn't add `restart` to the list of available
commands.

See: NixOS#39717
  • Loading branch information
donovanglover committed Jul 20, 2023
1 parent 1afd51d commit 554a7c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ _nixos-container() {
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
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)
update_opts="--config"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ sub showHelp {
[--host-address <string>]
[--local-address <string>]
nixos-container destroy <container-name>
nixos-container restart <container-name>
nixos-container start <container-name>
nixos-container stop <container-name>
nixos-container terminate <container-name>
Expand Down

0 comments on commit 554a7c1

Please sign in to comment.