From unknown Mon Jun 16 23:46:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#77884 <77884@debbugs.gnu.org> To: bug#77884 <77884@debbugs.gnu.org> Subject: Status: [PATCH] gnu: trash-cli: Install shell completions. Reply-To: bug#77884 <77884@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:46:13 +0000 retitle 77884 [PATCH] gnu: trash-cli: Install shell completions. reassign 77884 guix-patches submitter 77884 Andrew Wong severity 77884 normal tag 77884 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 18 00:11:14 2025 Received: (at submit) by debbugs.gnu.org; 18 Apr 2025 04:11:14 +0000 Received: from localhost ([127.0.0.1]:49174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u5d4K-0006fi-NG for submit@debbugs.gnu.org; Fri, 18 Apr 2025 00:11:14 -0400 Received: from lists.gnu.org ([2001:470:142::17]:46460) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u5d4E-0006cG-8f for submit@debbugs.gnu.org; Fri, 18 Apr 2025 00:11:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u5d43-0003D7-8l for guix-patches@gnu.org; Fri, 18 Apr 2025 00:10:55 -0400 Received: from p-east3-cluster3-host12-snip6-10.eps.apple.com ([2a01:b747:3006:204::7b] helo=outbound.qs.icloud.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u5d40-0001E8-TY for guix-patches@gnu.org; Fri, 18 Apr 2025 00:10:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; bh=IixZKkJjNg+tSj6SxuLOwEAu0PiaIVhUqlCV1qCjUZg=; h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme; b=qXICndxt1FnWT+jjn2ert9BOv66hFipSuPCDwXKZ4WNu9itOSg/jmAH7rfriW2ajn HCGI2mPp5fNUTOAyQTNxN+e6Fu/DhLjKxGspqJ17rw1Wa1gUh2FDOy25zUMyFxVWCK UEC3dcQSVLTan6uIZvV59nPAIwlryHBmTdspWZ/7VIdttblf+SPPoDOmQNvicEp+wf BWVqPvMMkGjogh7uutTAkZzf5cNAhmNTGmMguCZ60dePiX9TnUuyrTBXz8FjW/3D4y n9+etIAL+52PpfFtUpDMfYXo5DkyW4Cg8SP6YFLTQl+Hd15Af5UlI2PgVn4REgqaH1 Qax/KgwV44seg== Received: from wongworks.lan (qs-asmtp-me-k8s.p00.prod.me.com [17.57.155.37]) by outbound.qs.icloud.com (Postfix) with ESMTPSA id D656D180014A; Fri, 18 Apr 2025 04:10:46 +0000 (UTC) From: Andrew Wong To: guix-patches@gnu.org Subject: [PATCH] gnu: trash-cli: Install shell completions. Date: Fri, 18 Apr 2025 00:10:39 -0400 Message-ID: <71d35b161b07d6d4193a173d4e51dbb61338c752.1744949439.git.wongandj@icloud.com> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: VfNzHLn2joY47xxeoRwG4niBfy52x4-9 X-Proofpoint-GUID: VfNzHLn2joY47xxeoRwG4niBfy52x4-9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1095,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-04-18_01,2025-04-17_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxlogscore=719 adultscore=0 bulkscore=0 spamscore=0 suspectscore=0 malwarescore=0 mlxscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2504180028 Received-SPF: pass client-ip=2a01:b747:3006:204::7b; envelope-from=wongandj@icloud.com; helo=outbound.qs.icloud.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: Andrew Wong X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) * gnu/packages/shellutils.scm (trash-cli)[arguments]<#:phases>Install shell completions. Change-Id: I0b165155d1da8069837bd9b93990dfaf0ff7de52 --- gnu/packages/shellutils.scm | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm index ea6dcafbc9..aae50d8d4c 100644 --- a/gnu/packages/shellutils.scm +++ b/gnu/packages/shellutils.scm @@ -672,7 +672,31 @@ (define-public trash-cli (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? - (invoke "pytest"))))))) + (invoke "pytest")))) + (add-after 'wrap 'install-completions + (lambda _ + (for-each + (lambda (binary) + (for-each + (lambda (shell-completion-data) + (mkdir-p + (string-append + #$output (dirname (cdr shell-completion-data)))) + (with-output-to-file + (format + #f (string-append + #$output (cdr shell-completion-data)) + (basename binary)) + (lambda _ + (invoke binary "--print-completion" + (car shell-completion-data))))) + '(("bash" . "/share/bash-completion/completions/~a") + ("zsh" . "/share/zsh/site-functions/_~a") + ("tcsh" . "/etc/profile.d/~a.completion.csh")))) + (find-files + (string-append #$output "/bin/") + (lambda (file stat) + (not (string-suffix? "-real" file)))))))))) (native-inputs (list python-flexmock python-mock python-parameterized base-commit: f7c41ab31f5023023385500f6eb9083d23dd1ccb -- 2.49.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 07 09:32:33 2025 Received: (at control) by debbugs.gnu.org; 7 Jun 2025 13:32:33 +0000 Received: from localhost ([127.0.0.1]:47363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uNtey-00016a-Qx for submit@debbugs.gnu.org; Sat, 07 Jun 2025 09:32:33 -0400 Received: from p-east3-cluster5-host6-snip4-1.eps.apple.com ([57.103.86.182]:46608 helo=outbound.qs.icloud.com) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uNtev-00016L-Rh for control@debbugs.gnu.org; Sat, 07 Jun 2025 09:32:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; bh=maa64qWvthFoGMrXqr44cano4INkaT6t7Or5M6phQcM=; h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type:x-icloud-hme; b=N+mzEaIgZs/iLVA103OIPKoSCY1+cIgEp25B03zFbQh82TNnj/kgAgbuxPaNzjIXi ioeXlz7aut17UaO1I+HFhh9q/nTYRSbMsfBFuLZ3Flb/wz8c9/qy/2aaL4sZ5LzqX/ 5P+rBwVtaBKqu2r5+iadugT+IgUheW+dGFsbouN5vhXXSJO8CnQwGfMXhZetCOFCiR pw8sbb8FVyEeZej97Rnwi78FJrXuSydHwf9j69uRnLu2lXCFZeoCEBQ06xnEF//TUn MlHKEBYcwt0eoLVBi1v4gm8tcAVQ8lDCx4q4tbcW97fznRYvaa+PvwmTGorFAlR4GU gl7SAmeYTPcBg== Received: from outbound.qs.icloud.com (localhost [127.0.0.1]) by outbound.qs.icloud.com (Postfix) with ESMTPS id 039E81800228 for ; Sat, 7 Jun 2025 13:32:22 +0000 (UTC) Received: from [192.168.86.109] (qs-asmtp-me-k8s.p00.prod.me.com [17.57.155.37]) by outbound.qs.icloud.com (Postfix) with ESMTPSA id 5BF2B18001E5 for ; Sat, 7 Jun 2025 13:32:22 +0000 (UTC) Message-ID: <88afd5e4-df3c-4e1e-a523-a79966fcdc8d@icloud.com> Date: Sat, 7 Jun 2025 09:32:21 -0400 MIME-Version: 1.0 User-Agent: Icedove Daily Content-Language: en-US To: control@debbugs.gnu.org From: Andrew Wong Subject: Close Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: iFk2r9f_PEaJH0pUJ2GkOaeivo59sSPC X-Proofpoint-ORIG-GUID: iFk2r9f_PEaJH0pUJ2GkOaeivo59sSPC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-06-07_05,2025-06-05_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 clxscore=1015 malwarescore=0 phishscore=0 spamscore=0 adultscore=0 mlxlogscore=364 suspectscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.22.0-2503310001 definitions=main-2506070096 X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 78024 close 77884 Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net [Blocked - see ] 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [57.103.86.182 listed in sa-trusted.bondedsender.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (wongandj[at]icloud.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [57.103.86.182 listed in bl.score.senderscore.com] X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) close 78024 close 77884