[systemd-devel] [wgiokas at wst420: Re: [PATCH] zsh-completion: add missing options for systemd-run]

William Giokas 1007380 at gmail.com
Thu Oct 31 19:50:09 CET 2013


Aaaaaand I hit the wrong button. Here it is to the list.

----- Forwarded message from William Giokas <wgiokas at wst420> -----
On Thu, Oct 31, 2013 at 07:24:28PM +0100, Ronny Chevalier wrote:
> ---
>  shell-completion/zsh/_systemd-run | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/shell-completion/zsh/_systemd-run b/shell-completion/zsh/_systemd-run
> index 0c81c54..d550f22 100644
> --- a/shell-completion/zsh/_systemd-run
> +++ b/shell-completion/zsh/_systemd-run
> @@ -22,6 +22,8 @@ _arguments \
>          {-h,--help}'[Show help message]' \
>          '--version[Show package version]' \
>          '--user[Run as user unit]' \
> +        {-H+,--host=}'[Operate on remote host]:[user@]host:_hosts' \

Nope. Look at the other -H/--host completions. It should use the
_sd_hosts_or_user_at_host function in the zsh/ directory. (See
_systemctl.)

> +        {-M+,--machine=}'[Operate on local container]:container' \

And look at the _machinectl stuff for getting a list of containers.

>          '--scope[Run this as scope rather than service]' \
>          '--unit=[Run under the specified unit name]:unit name' \
>          '--description=[Description for unit]:description' \
> -- 
> 1.8.4.2
> 
----- End forwarded message -----

Thanks,
-- 
William Giokas | KaiSforza | http://kaictl.net/
GnuPG Key: 0x73CD09CF
Fingerprint: F73F 50EF BBE2 9846 8306  E6B8 6902 06D8 73CD 09CF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20131031/1b3b0c50/attachment.pgp>


More information about the systemd-devel mailing list