Skip to content

Commit ce3599e

Browse files
committed
CLI completion of available pockets for migrate-pockets command
1 parent 77cbc45 commit ce3599e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1010
### Removed
1111
### Deprecated
1212

13+
## [v1.6.1] - 2026-02-06
14+
### Added
15+
- CLI-completion of available pockets for `migrate-pockets` command.
16+
1317
## [v1.6.0] - 2026-02-06
1418
### Added
1519
- Enable support for different database types. If you initialize `Server` or a subclass in your code, you should pass the `database_type` parameter of the configuration. (#267)

financeager/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,8 @@ def _parse_command(args=None, plugins=None):
529529
nargs="+",
530530
metavar="POCKET",
531531
help="name(s) of pocket(s) to migrate (without .json extension)",
532+
).completer = argcomplete.ChoicesCompleter(
533+
pocket_names(financeager.DATA_DIR, database_type="tinydb")
532534
)
533535

534536
# Extend with plugin parsers

0 commit comments

Comments
 (0)