From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27961 invoked from network); 14 Nov 2023 00:08:22 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Nov 2023 00:08:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:From:Reply-To:Cc: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=Ahs59OT0o7GYfLJWzCk2A6qoTNUkNrKMOLhgXtBVoNQ=; b=i9/j6N5qhbfni/ellPBXbYz8U3 kIvcLXM9jL+rbAPMrCfu9DNiICQVsD/Qlk/w7ViIzXwIeKTHsNxGSkFTpeahSDoS+R4FIC2Ryu0BG aZjGtorSfW+aJFOz6Q8l+CKXd2lw1u2XITKZXEic9ncgFHCNxSiXbLyw+RhFQlwoVP4rLYjnWKilD hxlp6n9CnRh06ffAW769AXNfRTsCEr3yxO8axbazc3w29lLbaK3jKXZdgKDY+cXYmkU8lVL7FyrTp 5GD54SCjCgknM7CiU+tgP3UEqw3j3zW7UZvBHLp0E02FjfiCrgUp6XdwmDOhovSZu1Uy728sIE4YF r7+Yd/JQ==; Received: by zero.zsh.org with local id 1r2gya-000614-1g; Tue, 14 Nov 2023 00:08:20 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1r2gyL-0005jU-BY; Tue, 14 Nov 2023 00:08:05 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.95) (envelope-from ) id 1r2gyJ-000CNk-Tm for zsh-workers@zsh.org; Tue, 14 Nov 2023 01:08:04 +0100 From: Oliver Kiddle To: Zsh workers Subject: PATCH: update ansible completion MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <47598.1699920483.1@hydra> Date: Tue, 14 Nov 2023 01:08:03 +0100 Message-ID: <47599-1699920483.919942@Pgo_.KSPP.cwjK> X-Seq: 52300 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: This adds options for ansible 2.15.2 Oliver diff --git a/Completion/Unix/Command/_ansible b/Completion/Unix/Command/_ansible index 7b85a58e4..bf31819ad 100644 --- a/Completion/Unix/Command/_ansible +++ b/Completion/Unix/Command/_ansible @@ -25,7 +25,6 @@ case $service in '(-k --ask-pass --connection-password-file)'{-k,--ask-pass}'[ask for connection password]' '(-k --ask-pass)--connection-password-file=[specify file containing connection password]:file:_files' '--list-hosts[output list of matching hosts]' - '(-l --limit)'{-l+,--limit=}'[further limit hosts to an additional pattern]:host subset:->hosts' '(-T --timeout)'{-T+,--timeout=}'[override the connection timeout]:timeout (seconds) [10]' '(-c --connection)'{-c+,--connection=}'[specify connection type]:connection type [smart]:->connect-types' '(-u --user)'{-u+,--user=}'[specify remote user for connection]:remote user:_users' @@ -44,7 +43,6 @@ case $service in '(-f --forks)'{-f+,--forks=}'[specify number of parallel processes to use]:processes [5]' '--become-method=[specify privilege escalation method to use]:method [sudo]:(sesu sudo su pbrun pfexec doas dzdo ksu runas pmrun enable machinectl)' '--become-user=[specify remote user for running operations]:user:_users' - "--syntax-check[perform a syntax check on the playbook, but don't execute it]" '!(-R --su-user -U --sudo-user)'{-R,-U,--su-user,--sudo-user}':user [root]:_users' ) ;| @@ -57,6 +55,7 @@ case $service in \*{-i+,--inventory=}'[specify inventory host file or host list]: : _alternative "files\:inventory file\:_files" "hosts\:host\: _sequence _hosts"' '!(-i --inventory)--inventory-file=:inventory file:_files' + '(-l --limit)'{-l+,--limit=}'[further limit hosts to an additional pattern]:host subset:->hosts' ) ;| ansible|ansible-console|ansible-inventory) @@ -112,7 +111,7 @@ case $service in '(-l --list -F --list_files -s --snippet --metadata-dump -e --entry-point)'{-s,--snippet}'[show playbook snippet for inventory, lookup and module plugins]' '(-l --list -F --list_files -s --snippet -e --entry-point)--metadata-dump[dump json metadata for all plugins]' '(-l --list -F --list_files -s --snippet --metadata-dump -e --entry-point)'{-e+,--entry-point=}'[select the entry point for roles]:entry point' - '(-t --type)'{-t+,--type=}'[choose plugin type]:plugin type [module]:(become cache callback cliconf connection httpapi inventory lookup netconf shell vars module strategy role keyword)' + '(-t --type)'{-t+,--type=}'[choose plugin type]:plugin type [module]:(become cache callback cliconf connection httpapi inventory lookup netconf shell vars module strategy test filter role keyword)' '(-r --roles-path)'{-r+,--roles-path=}'[specify directory containing roles]:directory:_directories' '*:plugin:->plugins' ) @@ -147,6 +146,7 @@ case $service in '--list-tags[list all available tags]' '--list-tasks[list all tasks that would be executed]' '--start-at-task=[start the playbook at specified task]:task' + "--syntax-check[perform a syntax check on the playbook, but don't execute it]" '--key-file=[specify file to use to authenticate the connection]:private key file:_files' '*:playbook:_files -g "(#i)*.y(|a)ml"' ) @@ -249,6 +249,7 @@ case $state in dump) args+=( '(--only-changed --changed-only)'{--only-changed,--changed-only}'[only show configuration that is changed from the default]' + '(-f --format)'{-f+,--format=}'[specify output format]:format:(json yaml display)' ) ;; init) @@ -257,6 +258,11 @@ case $state in '--disabled[prefix all entries with a comment character]' ) ;; + list) + args+=( + '(-f --format)'{-f+,--format=}'[specify output format]:format:(json yaml)' + ) + ;; esac _arguments -s -S : $args && ret=0 plug=${(v)opt_args[(i)-(t|-type)]} @@ -289,6 +295,7 @@ case $state in *-*) args+=( '(-c --ignore-certs)'{-c,--ignore-certs}'[ignore SSL certificate validation errors]' + '--timeout=[specify time to wait for operations against the galaxy]:timeout (seconds) [60]' '(-s --server)'{-s+,--server=}'[specify API server destination]:server:_hosts' --{token,api-key}='[specify ansible galaxy API key]:api key' \*{-v,--verbose}'[verbose mode]'