Re: prices & pricedb Reporting Commands

2021-10-17 Thread lipp f
Thank you for your answer  Richard. For me, it makes no difference if I use 
a real jurnal or an empty one. Absolutely nothing on the screen.

Can you please explain what each command does and how are they different? 
Maybe to show how you run them, what parameters are you using and what the 
output is?

On Sunday, October 17, 2021 at 3:47:34 AM UTC-4 wyl...@gmail.com wrote:

> Hi lipp,
>
> lipp f  writes:
>
> > My understanding is that these commands are supposed to somehow show 
> > records from the price database.
> >
> > I have tried the following commands
> >
> > $ ledger --args-only --price-db prices-db.j -f empty.j pricedb
> >
> > $ ledger --args-only --price-db prices-db.j -f empty.j prices
> >
> > ..., eventually followed by a commodity name or a commodity filter like 
> -l 
> > 'commodity=~/USD/'and I don't get anything.
>
> I suspect this is because you are using an empty journal file (based on
> the name you've given here). Is that the case?
>
> These commands work fine for me if I use my regular journal file. If I
> use an empty one, I get no output.
>
> I'm not sure what you'd expect ledger to report for an empty journal
> file, since there are no transactions from which prices can be
> calculated. (Are you just expecting it to echo your prices-db.j? If so,
> I'd recommend a different command for that ;) 
>
> -- 
> Best,
> Richard
>

-- 

--- 
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 ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/c46c055f-1219-4a03-93c1-21701fe721b1n%40googlegroups.com.


Re: prices & pricedb Reporting Commands

2021-10-17 Thread Richard Lawrence
Hi lipp,

lipp f  writes:

> My understanding is that these commands are supposed to somehow show 
> records from the price database.
>
> I have tried the following commands
>
>   $ ledger --args-only --price-db prices-db.j -f empty.j pricedb
>
>   $ ledger --args-only --price-db prices-db.j -f empty.j prices
>
> ..., eventually followed by a commodity name or a commodity filter like -l 
> 'commodity=~/USD/'and I don't get anything.

I suspect this is because you are using an empty journal file (based on
the name you've given here). Is that the case?

These commands work fine for me if I use my regular journal file. If I
use an empty one, I get no output.

I'm not sure what you'd expect ledger to report for an empty journal
file, since there are no transactions from which prices can be
calculated. (Are you just expecting it to echo your prices-db.j? If so,
I'd recommend a different command for that ;) 

-- 
Best,
Richard

-- 

--- 
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 ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/87wnmcf5yo.fsf%40aquinas.rewrittenlocator.xyz.