13 Commits

Author SHA1 Message Date
fryorcraken
1474e01a26
feat: add --account-label as alternative to --account-id across all wallet subcommands
Allow users to identify accounts by their human-readable label instead of the
full `Privacy/base58` account ID. This makes the CLI much more ergonomic for
users who have labeled their accounts.

- [x] Add `resolve_account_label()` in `helperfunctions.rs` that looks up a label,
  determines account privacy (public/private), and returns the full `Privacy/id` string
- [x] Add `--account-label` (or `--from-label`, `--to-label`, `--definition-label`,
  `--holder-label`, `--user-holding-*-label`) as mutually exclusive alternative to
  every `--account-id`-style flag across all subcommands:
  - `account get`, `account label`
  - `auth-transfer init`, `auth-transfer send`
  - `token new`, `token send`, `token burn`, `token mint`
  - `pinata claim`
  - `amm new`, `amm swap`, `amm add-liquidity`, `amm remove-liquidity`
- [x] Update zsh completion script with `_wallet_account_labels()` helper
- [x] Add bash completion script with `_wallet_get_account_labels()` helper

1. Start a local sequencer
2. Create accounts and label them: `wallet account new public --label alice`
3. Use labels in commands: `wallet account get --account-label alice`
4. Verify mutual exclusivity: `wallet account get --account-id <id> --account-label alice` should error
5. Test shell completions: `wallet account get --account-label <TAB>` should list labels

None

None

- [x] Complete PR description
- [x] Implement the core functionality
- [ ] Add/update tests
- [x] Add/update documentation and inline comments

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 14:37:47 +11:00
Daniil Polyakov
3464d15d89
Merge pull request #364 from logos-blockchain/bash-completion
Bash completion for `wallet`
2026-03-10 22:55:35 +03:00
Daniil Polyakov
7f0d41104d fix: replace old keys with new ones in configurations 2026-03-07 15:41:47 +03:00
fryorcraken
d9b2b0c824
update zsh completion 2026-02-27 15:26:57 +11:00
fryorcraken
e2175132f5
Add bash completion script 2026-02-27 15:23:03 +11:00
Daniil Polyakov
437e5addb4 feat: use human-readable byte sizes and durations 2026-02-26 16:25:24 +03:00
jonesmarvin8
6a399ac36c Merge branch 'main' into marvin/private_keys 2026-02-11 11:49:57 -05:00
fryorcraken
94d4ccad80
chore: add label to zsh auto-completion 2026-02-06 14:53:48 +11:00
jonesmarvin8
c6aa0c41b6 update tests 2026-01-21 17:27:23 -05:00
fryorcraken
47e76c9f85
Added support for --long 2026-01-16 11:26:58 +11:00
fryorcraken
5a4111bcc8
Update readme 2026-01-16 11:23:54 +11:00
fryorcraken
d789ccba46
add more commands 2026-01-16 11:23:54 +11:00
fryorcraken
bb54d08f02
Add zsh completion script for wallet CLI 2026-01-16 11:23:54 +11:00