mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
53ad035b24
Effectively improves error reporting for directives. Resolves simonmichael/hledger#402
36 lines
428 B
Plaintext
36 lines
428 B
Plaintext
# . apply account, end apply account
|
|
hledger -f - accounts
|
|
<<<
|
|
apply account a
|
|
2016/1/1
|
|
(b) 1
|
|
end apply account
|
|
apply account aa
|
|
2016/1/1
|
|
(b) 1
|
|
end apply account
|
|
2016/1/2
|
|
(c) 1
|
|
>>>
|
|
a:b
|
|
aa:b
|
|
c
|
|
>>>=0
|
|
|
|
# empty multi-line commodity directive
|
|
hledger -f - reg
|
|
<<<
|
|
commodity BTC
|
|
>>>
|
|
>>>2
|
|
>>>=0
|
|
|
|
# unsupported commodity sub-directive
|
|
hledger -f - reg
|
|
<<<
|
|
commodity BTC
|
|
note Bitcoin
|
|
>>>
|
|
>>>2 /expecting "format"/
|
|
>>>=1
|