Merge pull request #244584 from donovanglover/nixos-container/restart

nixos-container: add missing restart command
This commit is contained in:
Pol Dellaiera 2023-07-24 21:36:04 +02:00 committed by GitHub
commit b6c254b0cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -39,6 +39,7 @@ Usage: nixos-container list
[--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>