Hi Manish,
No worry about the delay. Now, it’s me who should apologize for not trying
your suggestion out sooner!
I was able to get a bit further, but I seem to have run into another
problem. When I run the application, I get the following assert error. I’m
including some dumps from the *.yaml files in ~/.into-ledger/ directory as
well as a sample line from the CSV file I’m attempting to parse. Let me
know if you see any obvious errors on my part.
thanks,
Bren
(~/.into-ledger):> into-ledger -a wells-primary -csv
Primary-Checking-0405.2016-11-08-2016-11-27.csv
Opening file: /Users/bren/.into-ledger/shortcuts.yaml for reading key
mappings
Using config: {Currency:USD
Journal:/Users/bren/Documents/Personal/Financial/CLA/Ledger/smith.finances.journal
DateFormat:01/02/2006 Ignore:0
Output:/Users/bren/Documents/Personal/Financial/CLA/Ledger/wells-primary.out}
2016/12/07 14:08:47 Should be true, but is false
main.assert
/Users/bren/Documents/Personal/Go/src/github.com/manishrjain/into-ledger/main.go:88
main.(*parser).parseAccounts
/Users/bren/Documents/Personal/Go/src/github.com/manishrjain/into-ledger/main.go:153
main.main
/Users/bren/Documents/Personal/Go/src/github.com/manishrjain/into-ledger/main.go:730
runtime.main
/usr/local/go/src/runtime/proc.go:188
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1998
Here’s the contents of my config.yaml:
accounts:
wells-primary:
currency: USD
journal:
/Users/bren/Documents/Personal/Financial/CLA/Ledger/smith.finances.journal
dateformat: 01/02/2006
ignore: "0"
output:
/Users/bren/Documents/Personal/Financial/CLA/Ledger/wells-primary.out
Here’s the contents of my shortcuts.yaml:
keys:
- short: b
mapto: .back
label: default
- short: q
mapto: .quit
label: default
- short: a
mapto: .show all
label: default
- short: s
mapto: .skip
label: default
and here’s a representative line from the CSV file I’m pulling from:
"11/28/2016","-11.99","*","","PURCHASE AUTHORIZED ON 11/27 AMAZON MKTPLACE
PM AMZN.COM/BILL WA S38994578103554031 CARD 8956”
On Friday, December 2, 2016 at 4:04:48 PM UTC-8, Manish Rai Jain wrote:
>
> Hi Bren,
>
> Sorry for the delay. The config file should be located inside
> "~/.into-ledger", with the name "config.yaml". You can see the relevant
> code here:
> https://github.com/manishrjain/into-ledger/blob/master/main.go#L655
>
> I'll add this part to the README, so it's clear. Also, feel free to file
> any documentation issues as bugs. I like to treat documentation as code,
> with the same level of importance.
>
>
> --
> Thanks!
>
> Cheers,
> Manish
>
> Founder/CEO, Dgraph Labs
> +61-487138931
> https://calendly.com/mrjn
>
> On Tue, Nov 29, 2016 at 08:56:17PM -0800, Bren Smith wrote:
> > Hi Manish,
> >
> > Quick question. Where should one be putting their .into-ledger *config*
> > file? It appears that running the application creates a *directory*
> called
> > ".into-ledger" in my $HOME and then places the shortcuts.yaml file in
> that
> > directory (e.g. /Users/bren/.into-ledger/shortcuts.yaml). So it appears
> > that I can't have a directory and a config file of the same name.
> Perhaps
> > I'm just missing something terribly obvious.
> >
> > many thanks in advance,
> >
> > Bren
> >
> > --
> >
> > ---
> > You received this message because you are subscribed to the Google
> Groups "Ledger" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected] <javascript:>.
> > For more options, visit https://groups.google.com/d/optout.
>
>
--
---
You received this message because you are subscribed to the Google Groups
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.