summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--share/bash-completion/container24
-rwxr-xr-xshare/doc/asciicast/introduction.sh2
-rw-r--r--share/man/container-create-debconf.1.txt4
-rw-r--r--share/man/container-create.1.txt3
4 files changed, 18 insertions, 15 deletions
diff --git a/share/bash-completion/container b/share/bash-completion/container
index 0a9af1a..e117d16 100644
--- a/share/bash-completion/container
+++ b/share/bash-completion/container
@@ -48,7 +48,7 @@ _container()
console|con)
case "${prev}" in
-n|--name)
- opts=$(container list -s -f shell)
+ opts="$(container list -s -f shell)"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
@@ -64,19 +64,19 @@ _container()
create)
case "${prev}" in
-n|--name)
- opts=$(cd /etc/container-tools/debconf 2>/dev/null && ls *.cfg 2>/dev/null | sed -e 's/.cfg$//g')
+ opts="$(cd /etc/container-tools/debconf 2>/dev/null && ls *.cfg */*.cfg 2>/dev/null | sed -e 's|.*/||g' -e 's|.cfg$||g')"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
-s|--script)
- opts=$(cd /usr/share/container-tools/scripts && find -maxdepth 1 -not -type d -and -not -name 'default' -and -not -name 'debconf' -and -not -name '*.d' -printf '%P\n' | sort)
+ opts="$(cd /usr/share/container-tools/scripts && find -maxdepth 1 -not -type d -and -not -name 'default' -and -not -name 'debconf' -and -not -name '*.d' -printf '%P\n' | sort)"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
*)
- opts="-n --name -c --capability -d --drop-capability -s --script -b --bind --bind-ro"
+ opts="-n --name -c --capability -d --drop-capability -s --script -v --verbose -b --bind --bind-ro"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
@@ -86,7 +86,7 @@ _container()
enter)
case "${prev}" in
-n|--name)
- opts=$(container list -s -f shell)
+ opts="$(container list -s -f shell)"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
@@ -108,7 +108,7 @@ _container()
limit)
case "${prev}" in
-n|--name)
- opts=$(container list -a -f shell)
+ opts="$(container list -a -f shell)"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
@@ -146,7 +146,7 @@ _container()
move|mv)
case "${prev}" in
-o|--old)
- opts=$(container list -t -f shell)
+ opts="$(container list -t -f shell)"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
@@ -162,7 +162,7 @@ _container()
remove|rm)
case "${prev}" in
-n|--name)
- opts=$(container list -t -f shell)
+ opts="$(container list -t -f shell)"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
@@ -178,7 +178,7 @@ _container()
restart)
case "${prev}" in
-n|--name)
- opts=$(container list -s -f shell)
+ opts="$(container list -s -f shell)"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
@@ -194,7 +194,7 @@ _container()
start)
case "${prev}" in
-n|--name)
- opts=$(container list -t -f shell)
+ opts="$(container list -t -f shell)"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
@@ -210,7 +210,7 @@ _container()
status)
case "${prev}" in
-n|--name)
- opts=$(container list -t -f shell)
+ opts="$(container list -t -f shell)"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
@@ -226,7 +226,7 @@ _container()
stop)
case "${prev}" in
-n|--name)
- opts=$(container list -s -f shell)
+ opts="$(container list -s -f shell)"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
diff --git a/share/doc/asciicast/introduction.sh b/share/doc/asciicast/introduction.sh
index 2a1ab0b..c4efb0c 100755
--- a/share/doc/asciicast/introduction.sh
+++ b/share/doc/asciicast/introduction.sh
@@ -20,7 +20,7 @@
set -e
-# Usage: sudo asciinema -c ./introduction.sh
+# Usage: sudo asciinema rec -c ./introduction.sh
PS1="root@debian:~#"
diff --git a/share/man/container-create-debconf.1.txt b/share/man/container-create-debconf.1.txt
index ce77c53..db4028b 100644
--- a/share/man/container-create-debconf.1.txt
+++ b/share/man/container-create-debconf.1.txt
@@ -103,10 +103,10 @@ The following script options are available:
EXAMPLES
--------
*Create a Debian based container:*::
- sudo container create -s debian -n stretch.example.net
+ sudo container create -s debian -n debian.example.net
*Create a Progress Linux container:*::
- sudo container create -s progress-linux -n cairon-backports.example.net
+ sudo container create -s progress-linux -n progress.example.net
FILES
diff --git a/share/man/container-create.1.txt b/share/man/container-create.1.txt
index 6ffc867..d21bd58 100644
--- a/share/man/container-create.1.txt
+++ b/share/man/container-create.1.txt
@@ -55,6 +55,9 @@ The following container-create options are available:
*-s, --script='SCRIPT'*::
Specify container creation script, defaults to debootstrap.
+*-v, --verbose*::
+ Explain what is being done.
+
*-b, --bind='DIRECTORY:DIRECTORY[:OPTIONS][;DIRECTORY:DIRECTORY[:OPTIONS]]'*::
Specify container read-write bind mounts, see systemd-nspawn(1) --bind option.