mirror of
https://github.com/89luca89/distrobox.git
synced 2025-02-25 18:55:25 -06:00
completions: zsh - fixed issue with some arguments having invalid syntax (#1216)
This commit is contained in:
committed by
GitHub
parent
18540f37f0
commit
00c19cb83f
@@ -2,8 +2,8 @@
|
||||
|
||||
_arguments \
|
||||
'1:command:(create rm)' \
|
||||
'--file=[path to the distrobox manifest/ini file]:file:_files' \
|
||||
'(--name -n)'{-n,--name=}'[run against a single entry in the manifest/ini file]:entry name:' \
|
||||
'--file[path to the distrobox manifest/ini file]:file:_files' \
|
||||
'(--name -n)'{-n,--name}'[run against a single entry in the manifest/ini file]:entry name:' \
|
||||
'(--replace -R)'{-R,--replace}'[replace already existing distroboxes with matching names]' \
|
||||
'(--dry-run -d)'{-d,--dry-run}'[only print the container manager command generated]' \
|
||||
'(--verbose -v)'{-v,--verbose}'[show more verbosity]' \
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
#compdef distrobox-create
|
||||
|
||||
_arguments -s \
|
||||
'(--image -i)'{-i,--image=}'[image to use for the container]:image:_files' \
|
||||
'(--name -n)'{-n,--name=}'[name for the distrobox]:name:' \
|
||||
'(--image -i)'{-i,--image}'[image to use for the container]:image:_files' \
|
||||
'(--name -n)'{-n,--name}'[name for the distrobox]:name:' \
|
||||
'(--pull -p)'{-p,--pull}'[pull the image even if it exists locally (implies --yes)]' \
|
||||
'(--yes -Y)'{-Y,--yes}'[non-interactive, pull images without asking]' \
|
||||
'(--root -r)'{-r,--root}'[launch podman/docker/lilipod with root privileges]' \
|
||||
'(--clone -c)'{-c,--clone=}'[name of the distrobox container to use as base for a new container]:clone container name:' \
|
||||
'(--home -H)'{-H,--home=}'[select a custom HOME directory for the container]:path:_files -/' \
|
||||
'(--clone -c)'{-c,--clone}'[name of the distrobox container to use as base for a new container]:clone container name:' \
|
||||
'(--home -H)'{-H,--home}'[select a custom HOME directory for the container]:path:_files -/' \
|
||||
'--volume[additional volumes to add to the container]:volume:_files' \
|
||||
'(--additional-flags -a)'{-a,--additional-flags=}'[additional flags to pass to the container manager command]:flags:' \
|
||||
'(--additional-packages -ap)'{-ap,--additional-packages=}'[additional packages to install during initial container setup]:package:' \
|
||||
'(--additional-flags -a)'{-a,--additional-flags}'[additional flags to pass to the container manager command]:flags:' \
|
||||
'(--additional-packages -ap)'{-ap,--additional-packages}'[additional packages to install during initial container setup]:package:' \
|
||||
'--init-hooks[additional commands to execute during container initialization]:command:' \
|
||||
'--pre-init-hooks[additional commands to execute prior to container initialization]:command:' \
|
||||
'(--init -I)'{-I,--init}'[use init system inside the container]' \
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#compdef distrobox-enter
|
||||
|
||||
_arguments -s \
|
||||
'(--name -n)'{-n,--name=}'[name for the distrobox]:distrobox name:' \
|
||||
'(--name -n)'{-n,--name}'[name for the distrobox]:distrobox name:' \
|
||||
'--[end arguments and execute the rest as command to execute at login]:command:_command_names' \
|
||||
'(--no-tty -T)'{-T,--no-tty}'[do not instantiate a tty]' \
|
||||
'(--no-workdir -nw)'{-nw,--no-workdir}'[always start the container from container home directory]' \
|
||||
'(--additional-flags -a)'{-a,--additional-flags=}'[additional flags to pass to the container manager command]:flags:' \
|
||||
'(--additional-flags -a)'{-a,--additional-flags}'[additional flags to pass to the container manager command]:flags:' \
|
||||
'(--help -h)'{-h,--help}'[show this message]' \
|
||||
'(--root -r)'{-r,--root}'[launch podman/docker/lilipod with root privileges]' \
|
||||
'(--dry-run -d)'{-d,--dry-run}'[only print the container manager command generated]' \
|
||||
|
||||
@@ -6,15 +6,15 @@ _arguments -s \
|
||||
'(--help -h)'{-h,--help}'[show this message]' \
|
||||
'--[end arguments and execute the rest as command to execute at login]:command:_command_names' \
|
||||
'(--version -V)'{-V,--version}'[show version]' \
|
||||
'(--image -i)'{-i,--image=}'[image to use for the container]:image:_files' \
|
||||
'(--name -n)'{-n,--name=}'[name for the distrobox]:name:' \
|
||||
'(--image -i)'{-i,--image}'[image to use for the container]:image:_files' \
|
||||
'(--name -n)'{-n,--name}'[name for the distrobox]:name:' \
|
||||
'(--pull -p)'{-p,--pull}'[pull the image even if it exists locally (implies --yes)]' \
|
||||
'(--yes -Y)'{-Y,--yes}'[non-interactive, pull images without asking]' \
|
||||
'(--clone -c)'{-c,--clone=}'[name of the distrobox container to use as base for a new container]:clone container name:' \
|
||||
'(--home -H)'{-H,--home=}'[select a custom HOME directory for the container]:path:_files -/' \
|
||||
'(--clone -c)'{-c,--clone}'[name of the distrobox container to use as base for a new container]:clone container name:' \
|
||||
'(--home -H)'{-H,--home}'[select a custom HOME directory for the container]:path:_files -/' \
|
||||
'--volume[additional volumes to add to the container]:volume:_files' \
|
||||
'(--additional-flags -a)'{-a,--additional-flags=}'[additional flags to pass to the container manager command]:flags:' \
|
||||
'(--additional-packages -ap)'{-ap,--additional-packages=}'[additional packages to install during initial container setup]:package:' \
|
||||
'(--additional-flags -a)'{-a,--additional-flags}'[additional flags to pass to the container manager command]:flags:' \
|
||||
'(--additional-packages -ap)'{-ap,--additional-packages}'[additional packages to install during initial container setup]:package:' \
|
||||
'--init-hooks[additional commands to execute during container initialization]:command:' \
|
||||
'--pre-init-hooks[additional commands to execute prior to container initialization]:command:' \
|
||||
'(--init -I)'{-I,--init}'[use init system inside the container]' \
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
#compdef distrobox-export
|
||||
|
||||
_arguments -s \
|
||||
'(--app -a)'{-a,--app=}'[name of the application to export]:application name:' \
|
||||
'(--bin -b)'{-b,--bin=}'[absolute path of the binary to export]:path to binary:_files' \
|
||||
'(--app -a)'{-a,--app}'[name of the application to export]:application name:' \
|
||||
'(--bin -b)'{-b,--bin}'[absolute path of the binary to export]:path to binary:_files' \
|
||||
'(--delete -d)'{-d,--delete}'[delete exported application or binary]' \
|
||||
'(--export-label -el)'{-el,--export-label=}'[label to add to exported application name, use "none" to disable]:label:' \
|
||||
'(--export-path -ep)'{-ep,--export-path=}'[path where to export the binary]:export path:_files' \
|
||||
'(--extra-flags -ef)'{-ef,--extra-flags=}'[extra flags to add to the command]:extra flags:' \
|
||||
'(--enter-flags -nf)'{-nf,--enter-flags=}'[flags to add to distrobox-enter]:enter flags:' \
|
||||
'(--export-label -el)'{-el,--export-label}'[label to add to exported application name, use "none" to disable]:label:' \
|
||||
'(--export-path -ep)'{-ep,--export-path}'[path where to export the binary]:export path:_files' \
|
||||
'(--extra-flags -ef)'{-ef,--extra-flags}'[extra flags to add to the command]:extra flags:' \
|
||||
'(--enter-flags -nf)'{-nf,--enter-flags}'[flags to add to distrobox-enter]:enter flags:' \
|
||||
'(--sudo -S)'{-S,--sudo}'[specify if the exported item should be run as sudo]' \
|
||||
'(--help -h)'{-h,--help}'[show this message]' \
|
||||
'(--verbose -v)'{-v,--verbose}'[show more verbosity]' \
|
||||
|
||||
@@ -5,7 +5,7 @@ _arguments -s \
|
||||
'(--help -h)'{-h,--help}'[show this message]' \
|
||||
'(--all -a)'{-a,--all}'[perform for all distroboxes]' \
|
||||
'(--delete -d)'{-d,--delete}'[delete the entry]' \
|
||||
'(--icon -i)'{-i,--icon=}'[specify a custom icon (default auto)]:icon path:_files' \
|
||||
'(--icon -i)'{-i,--icon}'[specify a custom icon (default auto)]:icon path:_files' \
|
||||
'(--root -r)'{-r,--root}'[perform on rootful distroboxes]' \
|
||||
'(--verbose -v)'{-v,--verbose}'[show more verbosity]' \
|
||||
'(--version -V)'{-V,--version}'[show version]'
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#compdef distrobox-init
|
||||
|
||||
_arguments \
|
||||
'(--name -n)'{-n,--name=}'[user name]:user name:' \
|
||||
'(--user -u)'{-u,--user=}'[uid of the user]:uid:' \
|
||||
'(--group -g)'{-g,--group=}'[gid of the user]:gid:' \
|
||||
'(--home -d)'{-d,--home=}'[path/to/home of the user]:home path:_files' \
|
||||
'(--name -n)'{-n,--name}'[user name]:user name:' \
|
||||
'(--user -u)'{-u,--user}'[uid of the user]:uid:' \
|
||||
'(--group -g)'{-g,--group}'[gid of the user]:gid:' \
|
||||
'(--home -d)'{-d,--home}'[path/to/home of the user]:home path:_files' \
|
||||
'(--help -h)'{-h,--help}'[show this message]' \
|
||||
'--additional-packages[packages to install in addition]:packages:' \
|
||||
'(--init -I)'{-I,--init}'[whether to use or not init]' \
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#compdef distrobox-stop
|
||||
|
||||
_arguments \
|
||||
'--name=[specify container name]:container name:' \
|
||||
'--name[specify container name]:container name:' \
|
||||
'(--all -a)'{-a,--all}'[stop all distroboxes]' \
|
||||
'(--yes -Y)'{-Y,--yes}'[non-interactive, stop without asking]' \
|
||||
'(--help -h)'{-h,--help}'[show this message]' \
|
||||
|
||||
Reference in New Issue
Block a user