teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame 0167-zsh-completion-add-missing-completions-for-systemd-n.patch

Zbigniew Jędrzejewski-Szmek a48f80
From b632845742c568b5576fdae430983deb42c7897a Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek a48f80
From: Lukas Rusak <lorusak@gmail.com>
Zbigniew Jędrzejewski-Szmek a48f80
Date: Wed, 22 Apr 2015 11:07:39 -0700
Zbigniew Jędrzejewski-Szmek a48f80
Subject: [PATCH] zsh-completion: add missing completions for systemd-nspawn
Zbigniew Jędrzejewski-Szmek a48f80
Zbigniew Jędrzejewski-Szmek a48f80
(cherry picked from commit 6b85708cfd371f40ed95462cd8787ee0673ad36d)
Zbigniew Jędrzejewski-Szmek a48f80
---
Zbigniew Jędrzejewski-Szmek a48f80
 shell-completion/zsh/_systemd-nspawn | 22 +++++++++++++---------
Zbigniew Jędrzejewski-Szmek a48f80
 1 file changed, 13 insertions(+), 9 deletions(-)
Zbigniew Jędrzejewski-Szmek a48f80
Zbigniew Jędrzejewski-Szmek a48f80
diff --git a/shell-completion/zsh/_systemd-nspawn b/shell-completion/zsh/_systemd-nspawn
Zbigniew Jędrzejewski-Szmek a48f80
index ceedb2c5a0..08f5696acb 100644
Zbigniew Jędrzejewski-Szmek a48f80
--- a/shell-completion/zsh/_systemd-nspawn
Zbigniew Jędrzejewski-Szmek a48f80
+++ b/shell-completion/zsh/_systemd-nspawn
Zbigniew Jędrzejewski-Szmek a48f80
@@ -11,34 +11,38 @@ _nspawn-caps(){
Zbigniew Jędrzejewski-Szmek a48f80
 }
Zbigniew Jędrzejewski-Szmek a48f80
 
Zbigniew Jędrzejewski-Szmek a48f80
 _arguments \
Zbigniew Jędrzejewski-Szmek a48f80
-    {-h,--help}'[Show this help]' \
Zbigniew Jędrzejewski-Szmek a48f80
+    {-h,--help}'[Show this help.]' \
Zbigniew Jędrzejewski-Szmek a48f80
+    '--version[Print a short version string and exit.]' \
Zbigniew Jędrzejewski-Szmek a48f80
+    {--quiet,-q}'[Turns off any status output by the tool itself.]' \
Zbigniew Jędrzejewski-Szmek a48f80
     {--directory=,-D+}'[Directory to use as file system root for the namespace container. If omitted the current directory will be used.]:directories:_directories' \
Zbigniew Jędrzejewski-Szmek a48f80
+    '--template=[Initialize root directory from template directory, if missing.]:template:_directories' \
Zbigniew Jędrzejewski-Szmek a48f80
+    {--ephemeral,-x}'[Run container with snapshot of root directory, and remove it after exit.]' \
Zbigniew Jędrzejewski-Szmek a48f80
     {--image=,-i+}'[Disk image to mount the root directory for the container from.]' \
Zbigniew Jędrzejewski-Szmek a48f80
     {--boot=,-b+}'[Automatically search for an init binary and invoke it instead of a shell or a user supplied program.]' \
Zbigniew Jędrzejewski-Szmek a48f80
     {--user=,-u+}'[Run the command under specified user, create home directory and cd into it.]' \
Zbigniew Jędrzejewski-Szmek a48f80
     {--machine=,-M+}'[Sets the machine name for this container.]' \
Zbigniew Jędrzejewski-Szmek a48f80
     '--uuid=[Set the specified uuid for the container.]' \
Zbigniew Jędrzejewski-Szmek a48f80
-    '--slice=[Make the container part of the specified slice, instead of the default machine.slice.]' \
Zbigniew Jędrzejewski-Szmek a48f80
-    '--private-network[Turn off networking in the container. This makes all network interfaces unavailable in the container, with the exception of the loopback device.]' \
Zbigniew Jędrzejewski-Szmek a48f80
+    {--slice=,-S+}'[Make the container part of the specified slice, instead of the default machine.slice.]' \
Zbigniew Jędrzejewski-Szmek a48f80
     '--private-network[Disconnect networking of the container from the host.]' \
Zbigniew Jędrzejewski-Szmek a48f80
     '--network-interface=[Assign the specified network interface to the container.]' \
Zbigniew Jędrzejewski-Szmek a48f80
     '--network-macvlan=[Create a "macvlan" interface of the specified Ethernet network interface and add it to the container.]' \
Zbigniew Jędrzejewski-Szmek a48f80
-    '--network-veth[Create a virtual Ethernet link (veth) between host and container.]' \
Zbigniew Jędrzejewski-Szmek a48f80
+    '--network-ipvlan=[Create a ipvlan network interface based on an existing network interface to the container.]' \
Zbigniew Jędrzejewski-Szmek a48f80
+    {--network-veth,-n}'[Create a virtual Ethernet link (veth) between host and container.]' \
Zbigniew Jędrzejewski-Szmek a48f80
     '--network-bridge=[Adds the host side of the Ethernet link created with --network-veth to the specified bridge.]' \
Zbigniew Jędrzejewski-Szmek a48f80
+    {--port=,-p+}'[Expose a container IP port on the host.]' \
Zbigniew Jędrzejewski-Szmek a48f80
     {--selinux-context=,-Z+}'[Sets the SELinux security context to be used to label processes in the container.]' \
Zbigniew Jędrzejewski-Szmek a48f80
     {--selinux-apifs-context=,-L+}'[Sets the SELinux security context to be used to label files in the virtual API file systems in the container.]' \
Zbigniew Jędrzejewski-Szmek a48f80
     '--capability=[List one or more additional capabilities to grant the container.]:capabilities:_nspawn-caps' \
Zbigniew Jędrzejewski-Szmek a48f80
-    '--drop-capability=[Specify one or more additional capabilities to drop for the container]' \
Zbigniew Jędrzejewski-Szmek a48f80
-    "--link-journal=[Control whether the container's journal shall be made visible to the host system.]:options:(no, host, guest, auto)" \
Zbigniew Jędrzejewski-Szmek a48f80
+    '--drop-capability=[Specify one or more additional capabilities to drop for the containerm]:capabilities:_nspawn-caps' \
Zbigniew Jędrzejewski-Szmek a48f80
+    "--link-journal=[Control whether the container's journal shall be made visible to the host system.]:options:(no host guest auto)" \
Zbigniew Jędrzejewski-Szmek a48f80
     '-j[Equivalent to --link-journal=guest.]' \
Zbigniew Jędrzejewski-Szmek a48f80
     '--read-only[Mount the root file system read only for the container.]' \
Zbigniew Jędrzejewski-Szmek a48f80
     '--bind=[Bind mount a file or directory from the host into the container.]' \
Zbigniew Jędrzejewski-Szmek a48f80
     '--bind-ro=[Bind mount a file or directory from the host into the container (read-only).]' \
Zbigniew Jędrzejewski-Szmek a48f80
+    '--tmpfs=[Mount an empty tmpfs to the specified directory.]' \
Zbigniew Jędrzejewski-Szmek a48f80
     '--setenv=[Specifies an environment variable assignment to pass to the init process in the container, in the format "NAME=VALUE".]' \
Zbigniew Jędrzejewski-Szmek a48f80
     '--share-system[Allows the container to share certain system facilities with the host.]' \
Zbigniew Jędrzejewski-Szmek a48f80
     '--register=[Controls whether the container is registered with systemd-machined(8).]' \
Zbigniew Jędrzejewski-Szmek a48f80
     '--keep-unit[Instead of creating a transient scope unit to run the container in, simply register the service or scope unit systemd-nspawn has been invoked in with systemd-machined(8).]' \
Zbigniew Jędrzejewski-Szmek a48f80
     '--personality=[Control the architecture ("personality") reported by uname(2) in the container.]' \
Zbigniew Jędrzejewski-Szmek a48f80
-    {--quiet,-q}'[Turns off any status output by the tool itself.]' \
Zbigniew Jędrzejewski-Szmek a48f80
-    {--help,-h}'[Print a short help text and exit.]' \
Zbigniew Jędrzejewski-Szmek a48f80
-    '--version[Print a short version string and exit.]'
Zbigniew Jędrzejewski-Szmek a48f80
+    '--volatile=[Run the system in volatile mode.]:volatile:(no yes state)'