From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id sPE3AwnUfWS7GgEASxT56A (envelope-from ) for ; Mon, 05 Jun 2023 14:24:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oE26AgnUfWQDoQAAauVa8A (envelope-from ) for ; Mon, 05 Jun 2023 14:24:41 +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 C851A102DE for ; Mon, 5 Jun 2023 14:24:40 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q68wP-0005KK-VB; Mon, 05 Jun 2023 08:04:05 -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 1q68wO-0005JM-1K for guix-patches@gnu.org; Mon, 05 Jun 2023 08:04:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q68wN-00062B-Ng for guix-patches@gnu.org; Mon, 05 Jun 2023 08:04:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q68wN-0002zH-JR for guix-patches@gnu.org; Mon, 05 Jun 2023 08:04:03 -0400 Subject: bug#63860: [PATCH] Shepherd: Add Bash completion file. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Mon, 05 Jun 2023 12:04:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 63860 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Oleg Pykhalov Cc: 63860-done@debbugs.gnu.org, Liliana Marie Prikler Mail-Followup-To: 63860@debbugs.gnu.org, ludo@gnu.org, go.wigust@gmail.com Received: via spool by 63860-done@debbugs.gnu.org id=D63860.168596662411421 (code D ref 63860); Mon, 05 Jun 2023 12:04:03 +0000 Received: (at 63860-done) by debbugs.gnu.org; 5 Jun 2023 12:03:44 +0000 Received: from localhost ([127.0.0.1]:48313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q68w3-0002y8-M3 for submit@debbugs.gnu.org; Mon, 05 Jun 2023 08:03:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q68w1-0002xi-KW for 63860-done@debbugs.gnu.org; Mon, 05 Jun 2023 08:03:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q68vw-0005xo-Da; Mon, 05 Jun 2023 08:03:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=39uzgMGquLIn8M7b89P+AryZ+Ia7HMgpkcS7ZOpv4ug=; b=hQA3Jm+UclLyW52FgW9f KgNmpz0aRa9Ykzzi7yfnn6fiyvwpnoqYPTp/B+paZgBBdF1l7QM9Hv4FGpBDxPIXWos9Sc7M+usBS qGU3vnb9Ckn2ieaXgkQHJEEZr/llwYjdA8PQHQ3Iid8bd6qv2kG36U+abAmn9l3OyNVA3zpnGJMfW 4PioHOjxQ32s3boKbAPip3uR5OOajS3F/9GfSh8PA/6UkP5OszFlmZBgd9j7yHwXLEQQUnVqRQMdj +Q5Ak3DatLYlPP4NePTS0qMxbJXSyf50cFWf9G9Dks9DBV2I3Fnj0OGthSK68is5TlP8n+CrS+qp9 LrMu8sX3IqJuDg==; Received: from [193.50.110.155] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q68vu-00070N-LL; Mon, 05 Jun 2023 08:03:36 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <940cd99ec2de7a9d6b6e0ea98670f0031891cdda.camel@gmail.com> <20230604085716.31735-1-go.wigust@gmail.com> Date: Mon, 05 Jun 2023 14:03:32 +0200 In-Reply-To: <20230604085716.31735-1-go.wigust@gmail.com> (Oleg Pykhalov's message of "Sun, 4 Jun 2023 11:57:16 +0300") Message-ID: <873536jeuj.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685967880; a=rsa-sha256; cv=none; b=umhRPpN+l2FhW7XYcJUegIQHD12BwjTtPSYg/lIP1uBshBSFlD+g8h8g61Xg4KVcXyE9bP /QBzH5DmF2TwMRKqksxCW0Bi7DxeGFKGRHT6NPeIAl9XVUdNU2C0Nif3QgjzGaCbGI4Aqa Mccjoou6fJy7ig3khjlCKBWrDbA2X5fYgQivgQ5Y6GYTcemyYmnCdS6cUTGPZbENZOUV5O ZQC9FjlSg5PPbSHBs3HMdM7E8g6tqxgAkNwZ4ByxINZMvl0ApmKgI0n54FcX1YrufoY3ZC nLq59ypVamKhUrd+WZGPNyEqswYY3aR7rSKe875IMKULiijmjJ4jJ6+yR5y++Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=hQA3Jm+U; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685967880; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-to: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=39uzgMGquLIn8M7b89P+AryZ+Ia7HMgpkcS7ZOpv4ug=; b=kFywaOACygsyB1nAzLteuyZpOeHnmHFfHd1x7rRvW9TvVIPJRb+p6SBCCeaTn9iRbqRcKV Qgyr5aPHarKyeL7swP4c5+nv+cbHO8Ifo3J3aWnS3+w8OPY6RO5BSZGFg5T3cl4DyvD9on I1xzifc7r9XOv0zTQsZZl0hBCbpjYnRICwRdEi0kPqnTsNHBCa42EwsHzsw3T0xPfM5NVq zwfi8KaLPSp5p+DJXUESQk8c1wc6CbsUYgLTkkOqsllMkWA4TG7yMiR/sBNNNocA/kvnEL PTQsNKLbNaerB1wjT/iHtyAOd6Hp5fNV/hQiF+MFYr4MDkoodDTyqrULliWJ3g== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=hQA3Jm+U; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.89 X-Spam-Score: -3.89 X-Migadu-Queue-Id: C851A102DE X-TUID: Dt1WYepORXDn --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, Oleg Pykhalov skribis: > * etc/completion/bash/herd: New file. > * Makefile.am (dist_bashcompletion_DATA): New variable. > * configure.ac: Add --with-bash-completion-dir. Excellent! Applied with the changes below. Thank you & thanks Liliana for reviewing! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable diff --git a/NEWS b/NEWS index d6c2fc0..b644adb 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,11 @@ Please send Shepherd bug reports to bug-guix@gnu.org. =20 * Changes in 0.10.2 =20 +** New Bash completion + +A Bash completion file is now installed, providing tab completion for the +=E2=80=98herd=E2=80=99 command. + ** =E2=80=98herd=E2=80=99 shows a hint when the service and action are lik= ely swapped =20 The hint is printed for instance when typing =E2=80=98herd foobar start=E2= =80=99. diff --git a/etc/completion/bash/herd b/etc/completion/bash/herd index f006b86..74e7a24 100644 --- a/etc/completion/bash/herd +++ b/etc/completion/bash/herd @@ -44,8 +44,8 @@ _herd_complete_3() local command=3D"${COMP_WORDS[2]}" case "$command" in guix-daemon) - complitions=3D"on off" - mapfile -t COMPREPLY < <(compgen -W "$complitions" -- "${COMP_= WORDS[$COMP_CWORD]}") + completions=3D"on off" + mapfile -t COMPREPLY < <(compgen -W "$completions" -- "${COMP_= WORDS[$COMP_CWORD]}") ;; *) ;; --=-=-=--