hledger-*: add pages for seven hledger subcommands (#12828)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Juri Dispan <juri.dispan@posteo.net> Co-authored-by: spageektti <git@spageektti.cc>
This commit is contained in:
36
pages/common/hledger-accounts.md
Normal file
36
pages/common/hledger-accounts.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# hledger accounts
|
||||
|
||||
> List account names.
|
||||
> More information: <https://hledger.org/hledger.html#accounts>.
|
||||
|
||||
- Show all accounts used or declared in the default journal file:
|
||||
|
||||
`hledger accounts`
|
||||
|
||||
- Show accounts used by transactions:
|
||||
|
||||
`hledger accounts --used`
|
||||
|
||||
- Show accounts declared with account directives:
|
||||
|
||||
`hledger accounts --declared`
|
||||
|
||||
- Add new account directives, for accounts used but not declared, to the journal:
|
||||
|
||||
`hledger accounts --undeclared --directives >> {{2024-accounts.journal}}`
|
||||
|
||||
- Show accounts with `asset` in their name, and their declared/inferred types:
|
||||
|
||||
`hledger accounts asset --types`
|
||||
|
||||
- Show accounts of the Asset type:
|
||||
|
||||
`hledger accounts type:a`
|
||||
|
||||
- Show the first two levels of the accounts hierarchy:
|
||||
|
||||
`hledger accounts --tree --depth 2`
|
||||
|
||||
- Short form of the above:
|
||||
|
||||
`hledger acc -t -2`
|
Reference in New Issue
Block a user