aboutsummaryrefslogtreecommitdiffstats
path: root/completions/firefly.bash
diff options
context:
space:
mode:
Diffstat (limited to 'completions/firefly.bash')
-rw-r--r--completions/firefly.bash11
1 files changed, 9 insertions, 2 deletions
diff --git a/completions/firefly.bash b/completions/firefly.bash
index e9dbe0b..06df14e 100644
--- a/completions/firefly.bash
+++ b/completions/firefly.bash
@@ -16,7 +16,7 @@ _firefly() {
}
local global_opts="--human --url --token -h --help"
- local groups="auth account category tag tx"
+ local groups="auth account category tag tx budget"
# Find the group and leaf among the words (skip the program name at 0).
local group="" leaf="" i
@@ -40,10 +40,14 @@ _firefly() {
"account balance") leaf_opts="--at";;
"account create") leaf_opts="--currency --if-not-exists --opening-balance --type";;
"account list") leaf_opts="--type";;
- "tx add") leaf_opts="--category --date --desc --dry-run --from --from-id --skip-dupes --tags --to --to-id --type";;
+ "tx add") leaf_opts="--budget --category --date --desc --dry-run --from --from-id --skip-dupes --tags --to --to-id --type";;
"tx delete") leaf_opts="--yes";;
"tx edit") leaf_opts="--amount --category --date --desc --from --tags --to --type";;
"tx list") leaf_opts="--account --all --flat --limit --since --until";;
+ "budget create") leaf_opts="--active --auto-budget-amount --auto-budget-period --auto-budget-type --currency --inactive";;
+ "budget delete") leaf_opts="--yes";;
+ "budget limit-set") leaf_opts="--amount --currency --end --start";;
+ "budget list") leaf_opts="--end --start";;
esac
# Leaves per group.
@@ -54,6 +58,7 @@ _firefly() {
category) leaves="list";;
tag) leaves="list";;
tx) leaves="add delete edit get list search";;
+ budget) leaves="create delete disable enable limit-list limit-set list";;
esac
# Flag values: when the previous word is a flag with a fixed value set for
@@ -62,6 +67,8 @@ _firefly() {
case "$group $leaf $prev" in
"account create --type") vals="asset expense revenue";;
"account list --type") vals="asset expense revenue liability";;
+ "budget create --auto-budget-period")vals="daily weekly monthly quarterly half_year yearly";;
+ "budget create --auto-budget-type")vals="reset rollover adjusted none";;
"tx add --type") vals="withdrawal deposit transfer";;
"tx edit --type") vals="withdrawal deposit transfer";;
esac