cli: some new short command aliases

accounts: a
balance: b
print: p, txns
register: r
This commit is contained in:
Simon Michael 2017-09-14 05:53:12 -07:00
parent 88fdb1f465
commit bc66c75bd2
4 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ accountsmode = (defCommandMode $ ["accounts"] ++ aliases) {
,groupNamed = [generalflagsgroup1]
}
}
where aliases = []
where aliases = ["a"]
-- | The accounts command.
accounts :: CliOpts -> Journal -> IO ()

View File

@ -288,7 +288,7 @@ balancemode = (defCommandMode $ ["balance"] ++ aliases) { -- also accept but don
,groupNamed = [generalflagsgroup1]
}
}
where aliases = ["bal"]
where aliases = ["b","bal"]
-- | The balance command, prints a balance report.
balance :: CliOpts -> Journal -> IO ()

View File

@ -44,7 +44,7 @@ printmode = (defCommandMode $ ["print"] ++ aliases) {
,groupNamed = [generalflagsgroup1]
}
}
where aliases = []
where aliases = ["p","txns"]
-- | Print journal transactions in standard format.
print' :: CliOpts -> Journal -> IO ()

View File

@ -54,7 +54,7 @@ registermode = (defCommandMode $ ["register"] ++ aliases) {
,groupNamed = [generalflagsgroup1]
}
}
where aliases = ["reg"]
where aliases = ["r","reg"]
-- | Print a (posting) register report.
register :: CliOpts -> Journal -> IO ()