First stab
This commit is contained in:
12
abra
12
abra
@ -842,6 +842,18 @@ sub_volume() {
|
||||
docker volume $@
|
||||
}
|
||||
|
||||
#######################################
|
||||
# Bash completion helpers
|
||||
#######################################
|
||||
|
||||
sub_command_ls() {
|
||||
docopt_exit 2>&1 | \
|
||||
tail -n+2 | \
|
||||
sed -s -e 's/^\s\+//g' -e 's/(\([^)]*\)|.*)/\1/' -e 's/\[options\]//g' \
|
||||
-e 's/ <[^>]\+>//g' -e 's/\.\.\.//g' -e 's/^abra\s*//' -e '/^$/d' | \
|
||||
sort -u
|
||||
}
|
||||
|
||||
#######################################
|
||||
# Main
|
||||
#######################################
|
||||
|
Reference in New Issue
Block a user