From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 5bc853cf for ; Thu, 15 Aug 2019 14:42:10 +0000 (UTC) Received: (qmail 7401 invoked by alias); 15 Aug 2019 14:42:05 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44669 Received: (qmail 4306 invoked by uid 1010); 15 Aug 2019 14:42:05 -0000 X-Qmail-Scanner-Diagnostics: from st43p00im-ztfb10061701.me.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25538. spamassassin: 3.4.2. Clear:RC:0(17.58.63.172):SA:0(-4.3/5.0):. Processed in 0.829212 secs); 15 Aug 2019 14:42:05 -0000 X-Envelope-From: whereislelouch@icloud.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at icloud.com designates 17.58.63.172 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1565880089; bh=iXBZ8zOtjHkHIMiH48WTTZktDOaOk28nVGVn/TA3gLc=; h=From:Content-Type:Date:Subject:Message-Id:To; b=ehdBD/fbhpP5gmEkn9ARBhQ8mypjKT1k3B/Qia23Aa25bmXG0LkvS1Yinuk8uJG1h dJn4S9j+yoOfbgpru1uzcoeYCzXx1eklQK44D5bDiV+wUaVTpnuTZiGlc1fb5nv3HE ojwA54ra4E6p6CVeofVAA4FVTX/hPh1OrpNecjbE4IfXB/A8wQggcTVcoNEwqUSHSG /tiO4JgyRAY4M8F7nhZfMgb4HNP9KmmHM0+4D9Tajm/3KKjKidU4Yw9XF5P/YZVoyP gr7tTcZKOCieso7LA09sl9gWe7FYj8WmGikk7A75B78sxTQtMPyKhiKhTNAvyRAbn9 wI91+pFfpucrg== From: Aryn Starr Content-Type: multipart/alternative; boundary=Apple-Mail-5925C141-C054-44A0-B75D-3DB5C96A45C0 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) Date: Thu, 15 Aug 2019 19:11:25 +0430 Subject: Get completions non-interactively Message-Id: <5806F9C9-C556-4155-A600-8B52DBB5EAE5@icloud.com> To: zsh-workers@zsh.org X-Mailer: iPad Mail (16F203) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-15_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=478 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1812120000 definitions=main-1908150148 --Apple-Mail-5925C141-C054-44A0-B75D-3DB5C96A45C0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I use a custom-made Telegram bot to be able to send commands to my server. T= he bot basically runs `zsh -c INPUT` on its input and returns output. (I don= =E2=80=99t suppose there is anything like https://github.com/nrepl/nrepl for= zsh?) I sometimes find myself in need of the assistance of zsh=E2=80=99s completio= n system. Is there any way I can get the candidate completions by running a c= ommand? I have googled, and found https://github.com/Valodim/zsh-capture-completion,= but it=E2=80=99s a hack. I imagine it would be better if zsh offered this f= unctionality itself. PS: Please =E2=80=9Creply-all.=E2=80=9D I=E2=80=99m not subscribed to the ma= iling list. (It=E2=80=99s always a good idea to reply-all.)= --Apple-Mail-5925C141-C054-44A0-B75D-3DB5C96A45C0--