zsh-users
 help / color / mirror / code / Atom feed
From: Anton Suslov <anton_suslov@me.com>
To: "Jérémie Roquet" <jroquet@arkanosis.net>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Composing completions for a wrapper script
Date: Sun, 31 Oct 2021 08:14:26 +0200	[thread overview]
Message-ID: <6378242D-C083-4C27-B2E5-B8F7DB520982@me.com> (raw)
In-Reply-To: <CAFOazAMe6-zuxRgk2hmyN7fuTvP+mZDqKM7a97MxngfRMm5WAQ@mail.gmail.com>

Hi, Jérémie,

kubectdc command as defined here has an extra first argument. kubectl doesn't expect
it, and because of that the completion gets extremely confused if I do compdef like this.
What I want is to be able to provide my completion for the first argument, and re-use the kubectl
completion for the rest of the args.

> On 31 Oct 2021, at 02:00, Jérémie Roquet <jroquet@arkanosis.net> wrote:
> 
> Hi Anton,
> 
>> Le dim. 31 oct. 2021 à 00:08, Anton Suslov <anton_suslov@me.com> a écrit :
>> Is it possible to somehow reuse [kubectl's] completion for kubectldc command
> 
> Try the following:
> 
>   compdef kubectldc=kubectl
> 
> Best regards,
> 
> -- 
> Jérémie


  reply	other threads:[~2021-10-31  6:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-30 22:07 Anton Suslov
2021-10-30 23:00 ` Jérémie Roquet
2021-10-31  6:14   ` Anton Suslov [this message]
2021-10-31 13:22 ` Mikael Magnusson
2021-10-31 20:32   ` Bart Schaefer
2021-11-01  7:13     ` Anton Suslov
2021-11-01  7:53       ` Anton Suslov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6378242D-C083-4C27-B2E5-B8F7DB520982@me.com \
    --to=anton_suslov@me.com \
    --cc=jroquet@arkanosis.net \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).