Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7DF162237A4DE for ; Fri, 2 Feb 2018 14:47:23 -0800 (PST) From: Vishal Verma Subject: [ndctl PATCH] ndctl, bash completion: add completion for update-firmware Date: Fri, 2 Feb 2018 15:52:58 -0700 Message-Id: <20180202225258.30382-1-vishal.l.verma@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: linux-nvdimm@lists.01.org List-ID: Add filename completion for --firmware. dimm completion is already in place from other commands that use dimms. Cc: Dave Jiang Signed-off-by: Vishal Verma --- contrib/ndctl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/ndctl b/contrib/ndctl index fb0d421..eeda1c4 100755 --- a/contrib/ndctl +++ b/contrib/ndctl @@ -91,7 +91,7 @@ __ndctlcomp() COMPREPLY=( $( compgen -W "$1" -- "$2" ) ) for cword in "${COMPREPLY[@]}"; do - if [[ "$cword" == @(--bus|--region|--type|--mode|--size|--dimm|--reconfig|--uuid|--name|--sector-size|--map|--namespace|--input|--output|--label-version|--align|--block|--count) ]]; then + if [[ "$cword" == @(--bus|--region|--type|--mode|--size|--dimm|--reconfig|--uuid|--name|--sector-size|--map|--namespace|--input|--output|--label-version|--align|--block|--count|--firmware) ]]; then COMPREPLY[$i]="${cword}=" else COMPREPLY[$i]="${cword} " @@ -202,6 +202,8 @@ __ndctl_comp_options() --output) ;& --input) + ;& + --firmware) __ndctl_file_comp "${cur##*=}" return ;; -- 2.14.3 _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm