Merge pull request #326 from logos-blockchain/fryorcraken/zsh-completion-update

chore: add label to zsh auto-completion
This commit is contained in:
Sergio Chouhy 2026-02-06 15:06:34 -03:00 committed by GitHub
commit e3b59a117a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -150,10 +150,11 @@ _wallet_account() {
subcommand)
subcommands=(
'get:Get account data'
'list:List all accounts'
'list:List all accounts owned by the wallet'
'ls:List all accounts (alias for list)'
'new:Produce new public or private account'
'sync-private:Sync private accounts'
'label:Set a label for an account'
'help:Print this message or the help of the given subcommand(s)'
)
_describe -t subcommands 'account subcommands' subcommands
@ -184,6 +185,11 @@ _wallet_account() {
;;
esac
;;
label)
_arguments \
'(-a --account-id)'{-a,--account-id}'[Account ID to label]:account_id:_wallet_account_ids' \
'(-l --label)'{-l,--label}'[The label to assign to the account]:label:'
;;
esac
;;
esac