aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gen_completion.py
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-07-03 18:01:52 +0200
committerDanilo M. <danix@danix.xyz>2026-07-03 18:01:52 +0200
commitcab0885735bc48deb52553baac2701ae86dc3749 (patch)
treee6a2dc9ebb3af0083395b6eb02686004f1ab82de /scripts/gen_completion.py
parent8c0d2712445f2f175fbfddfde29a783af6530af9 (diff)
downloadfirefly-cli-cab0885735bc48deb52553baac2701ae86dc3749.tar.gz
firefly-cli-cab0885735bc48deb52553baac2701ae86dc3749.zip
build(completion): budget group and auto-budget enum values
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'scripts/gen_completion.py')
-rw-r--r--scripts/gen_completion.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/gen_completion.py b/scripts/gen_completion.py
index cee7d8e..b749f08 100644
--- a/scripts/gen_completion.py
+++ b/scripts/gen_completion.py
@@ -19,7 +19,7 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from firefly_cli import registry
import firefly_cli.commands # noqa: F401 triggers registration
-GROUP_ORDER = ["auth", "account", "category", "tag", "tx"]
+GROUP_ORDER = ["auth", "account", "category", "tag", "tx", "budget"]
# Static value suggestions for flags whose choices are a fixed enum, keyed on
# "<group leaf>" then flag. Account/transaction types are fixed in Firefly, so
@@ -29,6 +29,10 @@ FLAG_VALUES = {
"account create": {"--type": "asset expense revenue"},
"tx add": {"--type": "withdrawal deposit transfer"},
"tx edit": {"--type": "withdrawal deposit transfer"},
+ "budget create": {
+ "--auto-budget-type": "reset rollover adjusted none",
+ "--auto-budget-period": "daily weekly monthly quarterly half_year yearly",
+ },
}