From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,MIME_QP_LONG_LINE, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18285 invoked from network); 31 Oct 2021 06:15:34 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 31 Oct 2021 06:15:34 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1635660934; b=KqwQ5CGZLTQdrdUVOiUIZMb6NU7H8MUWa6dwYk2+az1cEd7uawmc94rYfdTP5o536zj6OlQs0k SDS0jOCC6ntTRs7CsmkLGAfpJNM7h/ISdwL0gRVbqxgE5SRzFjyDBssUvdj9CAGG2OQGdiNa02 c2NoIxtBrWuQynnXItvI07vz4+nWMJ3MMtuYt2vKzA4IcaGhl5vRrwfKVeEeefAM3TY8/gai6x 63+Vxv9PIaU7/NtusVRE5RhzTKRdmxPTd6soNEEJiI5sTTNU7ItbK8/07HmTXv+0aH5U3UxM2W w0hC7QkYafFsTO9L7CVkkDCIqaxuIIIQ1bZ78PuuIgYX0A==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (pv50p00im-hyfv10011601.me.com) smtp.remote-ip=17.58.6.43; dkim=pass header.d=me.com header.s=1a1hai header.a=rsa-sha256; dmarc=pass header.from=me.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1635660934; bh=GpMquxFCoFg4iwSwvxUaC9FivNTmaBoewwxTDusIkN8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:References:Message-ID:Date:Cc:In-Reply-To:From:Subject: MIME-Version:Content-Transfer-Encoding:Content-Type:DKIM-Signature: DKIM-Signature; b=F8XUFJQJe3kOo8sNCUrk1YGbMF9duxGR42WyKob90nVPZ9MxyNgkjtYizB0fx5OIA5QhETfTWF 6WXEhjIJ3LnXISawIRmeog5LNBrpVqsZ8fZzHyBUlGvR72E5Glyn60XkaNudfrk/9lISXWWMqV vJ4b7ZiiNqsc/1FaJRovndY2NzbC92wsSD1sNlNUbYRJfE9rkpzhAUW4/mH9fbUnOcrERSOf06 cNoAmIgZsUQDucPhxA4Q3mcmNl2Z4ormRCbc/YOsWto/Hzaa8ypQLc6plrkUhUQFvCwZ0BH0KN 16AWDZHdMz5Nl9TTi7v4UtP2fykfRLvSwxJ0EQ07XunDJA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:To:References:Message-Id:Date:Cc: In-Reply-To:From:Subject:Mime-Version:Content-Transfer-Encoding:Content-Type: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID; bh=Q8MnryYmngye/qePVC4FWInlIlim5Pk32OSN4JOFLVM=; b=lPiU0HEEx8fVFUd0yGjAsWwmez qI0RSkk/N0fnCh1r3wm1ER6nLj34iYdRdIPuaS0d/cm/MD5fD6ZH+Sl7XgPeFPfh60OQn0dlDXSE+ 9Iv44d/1fKTePByFojtVDU9OtWqWBRd3oolTCNwqCxolp1bsCTyv6JaXawPCGeerr5F/CPSm5uk5m BpcL7HDwI2aDFDFX+21DP3GPg+YChd+ug03iZqJBaCz5lX0MXrcfS+YXxWz1/cGOcU4AKIJMKzBb0 YFBMVKaeJ2eTZz3yRse9waj3dGBQLuxd6YXBXeib1afKGZGI20pZvO2p73bCyO8Z837C+u053UZl0 2CeGNDDw==; Received: from authenticated user by zero.zsh.org with local id 1mh47w-000EkH-KW; Sun, 31 Oct 2021 06:15:32 +0000 Authentication-Results: zsh.org; iprev=pass (pv50p00im-hyfv10011601.me.com) smtp.remote-ip=17.58.6.43; dkim=pass header.d=me.com header.s=1a1hai header.a=rsa-sha256; dmarc=pass header.from=me.com; arc=none Received: from pv50p00im-hyfv10011601.me.com ([17.58.6.43]:51532) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mh46z-000Dzw-2m; Sun, 31 Oct 2021 06:14:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1635660870; bh=Q8MnryYmngye/qePVC4FWInlIlim5Pk32OSN4JOFLVM=; h=Content-Type:Mime-Version:Subject:From:Date:Message-Id:To; b=SYrEvkX1ZdmEBvR5wI4mxcHt9gMgX2MXFf4tHlgPxPY1yON2h88rE/TSvZYwo7UiC 6sQPHCG2syyXpG+pQrJOgtTG4nOpz/+2DxTm3PCYVZL0gUSfQ/5BUMGVJzqwFOCNPI MqucOuaAGtBr96YfEQPmGCA8j1iWXoweND4izHk0ejnep5kZtHxjKQpOqKtsMvP3nx M+yY4Hl/14tcC5LwRxnjpYzBFOnJjPd5FhFS0SmW57B5k1KH24G0pswhraTysUcz5j hEQmeczs9jtkoUTVAo1lN6x6+piMqh8H5pAZqB6OpImMtPL+yFkEq/Z4Xh82vHjrt9 bHkPftIyNmtog== Received: from smtpclient.apple (92-247-251-232.spectrumnet.bg [92.247.251.232]) by pv50p00im-hyfv10011601.me.com (Postfix) with ESMTPSA id 19DC8380194; Sun, 31 Oct 2021 06:14:30 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Subject: Re: Composing completions for a wrapper script From: Anton Suslov In-Reply-To: Cc: Zsh Users Date: Sun, 31 Oct 2021 08:14:26 +0200 Message-Id: <6378242D-C083-4C27-B2E5-B8F7DB520982@me.com> References: To: =?utf-8?Q?J=C3=A9r=C3=A9mie_Roquet?= X-Mailer: iPad Mail (18H17) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.425,18.0.790 definitions=2021-10-31_01:2021-10-29,2021-10-31 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=963 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2009150000 definitions=main-2110310039 X-Seq: 27303 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Hi, J=C3=A9r=C3=A9mie, 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 compd= ef like this. What I want is to be able to provide my completion for the first argument, a= nd re-use the kubectl completion for the rest of the args. > On 31 Oct 2021, at 02:00, J=C3=A9r=C3=A9mie Roquet = wrote: >=20 > =EF=BB=BFHi Anton, >=20 >> Le dim. 31 oct. 2021 =C3=A0 00:08, Anton Suslov a =C3= =A9crit : >> Is it possible to somehow reuse [kubectl's] completion for kubectldc comm= and >=20 > Try the following: >=20 > compdef kubectldc=3Dkubectl >=20 > Best regards, >=20 > --=20 > J=C3=A9r=C3=A9mie