From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yGy0EcPZRmNjUwAAbAwnHQ (envelope-from ) for ; Wed, 12 Oct 2022 17:14:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mIvFEcPZRmO87AAAauVa8A (envelope-from ) for ; Wed, 12 Oct 2022 17:14:11 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AE17129C5A for ; Wed, 12 Oct 2022 17:14:10 +0200 (CEST) Received: from localhost ([::1]:46584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oidQv-00067N-Hc for larch@yhetil.org; Wed, 12 Oct 2022 11:14:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oidGA-00030n-EW for guix-patches@gnu.org; Wed, 12 Oct 2022 11:03:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59140) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oidGA-00032i-4v for guix-patches@gnu.org; Wed, 12 Oct 2022 11:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oidG9-0008RD-UI for guix-patches@gnu.org; Wed, 12 Oct 2022 11:03:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58408] [PATCH] gnu: Add doctl. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 12 Oct 2022 15:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58408 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "Matthew James Kraai" , <58408@debbugs.gnu.org> Received: via spool by 58408-submit@debbugs.gnu.org id=B58408.166558693232368 (code B ref 58408); Wed, 12 Oct 2022 15:03:01 +0000 Received: (at 58408) by debbugs.gnu.org; 12 Oct 2022 15:02:12 +0000 Received: from localhost ([127.0.0.1]:58218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oidFL-0008Pz-Rm for submit@debbugs.gnu.org; Wed, 12 Oct 2022 11:02:12 -0400 Received: from knopi.disroot.org ([178.21.23.139]:57500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oidFK-0008Pq-5R for 58408@debbugs.gnu.org; Wed, 12 Oct 2022 11:02:10 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 3886C4DAE0; Wed, 12 Oct 2022 17:02:09 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id Zzp35tWM1XSQ; Wed, 12 Oct 2022 17:02:08 +0200 (CEST) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1665586892; bh=Ut0pmO+O0ZXhKY2BO6HWFfTBw/4M57VNeUolqGGfs2g=; h=Date:Subject:From:To:References:In-Reply-To; b=L//mk8zg2Q/kdCfrVuGxzbWcCjtZeVmYRwwf0+dk+2vD/f16t+b2mwWjoI9UiqO+F ZX2xx+nI4i3T/rcX63MA2RKg95w3PLyZkRoKEi4tp5Zmr+O+pPD4k+JK/ckz5NAVYG uo8Rr0mJlHywtJpd6LLw/kwVQjgOyJXkoY1W91BB2CKonaJ0Yezx+Ma05ffoZxwUsd dqgq56T62VR0xsXHUXDFOQNj1wsnnpk2U3M001Z90ItASO8zaH5iXAtp+WEf6A91+n q0uKUVT6vghM7ujcLTDFf+X2XhQ3YoR2tVUkeAo8K89+KcQDeQRA+u06wn4QbQGJDE GJKRCPwBkzH1w== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 12 Oct 2022 16:01:32 +0100 Message-Id: References: In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" From: "\( via Guix-patches" via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665587651; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=1X4lrZeueyG2WsnuKhXJQb060CIxjD7EQAn8cwxX36Q=; b=kM6IeMYQafz9kwh9YaPLSFoCR1jcayH+G+vRZHcP7A15fsCxjKDtfTYbbcGyFMcwVKNRy6 h3p5eQy2TR16XTuf26ot6phEP1MhGyqOn7lFCMlWzw339JHAcNkNoSezxbUN84IbfO2z8M MgI7Rr+X13BVKdW5IUqy574/jfa0PeluIzPTjc/zHKxH5jQK9VVdDG4r37+apg9hXObjbR Ubfde5eAIHTlWPjbE2cGvP4D4ixn8QjUDG21tXwIbbn009D9pfB/+7W3JREsy2c4QSFuIM hhzo1S0T2oZ+u+9uxqRe6kxumMTYo1UJcImRHzD1Xp9ppMDIyo2IDxwgniKSKg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665587651; a=rsa-sha256; cv=none; b=bHfsWIyAGvuxl3SqEpa2+5lzIenKbSDjf5XN3VYEWWhCKm1TnXBHNtkogDin0sJknS7S49 JIfel0dWZOA+cHfpyjRpBGdMR7iJiRnLWmKUv+s4NNdopmaUpfYTb9YiE+KYZ3kovU7hBC U0pw0OeLCbs6XLRV419PMGz55lJhgboHxR89RQ+krGzr5oT6mSU9FVLwQP61V3Nq1wWY9g sCQn3yjJ5Z0m0tDQgZcUSNws4rXMPfJw1fUyXrh9ue0PskGcf/WACgMqfctTb+cP/a8OMF 7wKysg8dQwXWXMbCKZq2SEyDcwkQicZnH+FlcZUzyF1CF8WQCbVQCMBQ1AlhDQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b="L//mk8zg"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.40 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b="L//mk8zg"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: AE17129C5A X-Spam-Score: -2.40 X-Migadu-Scanner: scn1.migadu.com X-TUID: tHC+hSfEyUCF Hello, On Wed Oct 12, 2022 at 2:08 PM BST, Matthew James Kraai wrote: > Here's an updated patch that installs autocompletion scripts for Bash, fi= sh, and Zsh. Nice catch :) > + (lambda _ > + (let ((install-completion > + (lambda (shell file) > + (let ((file (string-append #$output file))) > + (mkdir-p (dirname file)) > + (with-output-to-file file > + (lambda _ > + (invoke (string-append #$output "/bin/= doctl") > + "completion" shell))))))) > + (install-completion "bash" "/etc/bash_completion.d/= doctl") > + (install-completion "fish" > + "/etc/fish/completions/doctl.fi= sh") > + (install-completion "zsh" > + "/etc/zsh/site-functions/_doctl= "))))))) I think it might be better to use ``(define (...) ...)'' instead of ``(let ((... (lambda ...))) ...)'' here. -- (