From e02afe9f7f504405b52a40eea9ac5eb08f9bb484 Mon Sep 17 00:00:00 2001 From: Quentin Boyer Date: Sun, 17 Jul 2022 18:43:04 +0200 Subject: [PATCH] Update kabalist cli --- flake.lock | 6 +++--- zfunc/_kabalist_cli | 30 ++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index c1c72b8..bb45dee 100644 --- a/flake.lock +++ b/flake.lock @@ -131,11 +131,11 @@ "kabalist": { "flake": false, "locked": { - "lastModified": 1658067642, - "narHash": "sha256-h3eHpVqKNZ3Ox6px4w8Vl6ewaWB8k7YgmS0Bx7N9psc=", + "lastModified": 1658075978, + "narHash": "sha256-JqsHVbX1h5kQ5saexXN16AkpB+NE5Ltw9FPXUhzuKcA=", "owner": "traxys", "repo": "kabalist", - "rev": "19fd995f481af3294ff919b2078aa2cf97fe4a5f", + "rev": "b4fb0c1edb75faa36126c5a805137bb0230febd8", "type": "github" }, "original": { diff --git a/zfunc/_kabalist_cli b/zfunc/_kabalist_cli index 8af2955..e8802ca 100644 --- a/zfunc/_kabalist_cli +++ b/zfunc/_kabalist_cli @@ -249,6 +249,24 @@ _arguments "${_arguments_options[@]}" \ ':target:' \ && ret=0 ;; +(edit) +_arguments "${_arguments_options[@]}" \ +'-t+[]:TARGET: ' \ +'--target=[]:TARGET: ' \ +'-a+[]:AMOUNT: ' \ +'--amount=[]:AMOUNT: ' \ +'-h[Print help information]' \ +'--help[Print help information]' \ +':item:' \ +&& ret=0 +;; +(delete) +_arguments "${_arguments_options[@]}" \ +'-h[Print help information]' \ +'--help[Print help information]' \ +':item:' \ +&& ret=0 +;; (refill) _arguments "${_arguments_options[@]}" \ '-h[Print help information]' \ @@ -373,11 +391,21 @@ _kabalist_cli__list__delete_commands() { local commands; commands=() _describe -t commands 'kabalist_cli list delete commands' commands "$@" } +(( $+functions[_kabalist_cli__list__pantry__delete_commands] )) || +_kabalist_cli__list__pantry__delete_commands() { + local commands; commands=() + _describe -t commands 'kabalist_cli list pantry delete commands' commands "$@" +} (( $+functions[_kabalist_cli__list__share__delete_commands] )) || _kabalist_cli__list__share__delete_commands() { local commands; commands=() _describe -t commands 'kabalist_cli list share delete commands' commands "$@" } +(( $+functions[_kabalist_cli__list__pantry__edit_commands] )) || +_kabalist_cli__list__pantry__edit_commands() { + local commands; commands=() + _describe -t commands 'kabalist_cli list pantry edit commands' commands "$@" +} (( $+functions[_kabalist_cli__account__help_commands] )) || _kabalist_cli__account__help_commands() { local commands; commands=() @@ -463,6 +491,8 @@ _kabalist_cli__account__login_commands() { _kabalist_cli__list__pantry_commands() { local commands; commands=( 'add:' \ +'edit:' \ +'delete:' \ 'refill:' \ 'help:Print this message or the help of the given subcommand(s)' \ )