New issue 148: bean-query makes it cumbersome to run queries from CLI https://bitbucket.org/blais/beancount/issues/148/bean-query-makes-it-cumbersome-to-run
Stefano Zacchiroli: Consider the example of the query directive given in the syntax reference: ``` #!beancount 2014-07-09 query "france-balances" " SELECT account, sum(position) WHERE ‘trip-france-2014’ in tags" ``` Running this query requires quoting (single or double) the query name, because otherwise the SQL tokenizer will consider "france" and "balances" separate tokens. This is not so bad when using the REPL, but gets annoying on the CLI, as one has to escape the quotes to avoid shell capture, e.g.: ``` #!shell bean-query foo.beancount run \"france-balances\" ``` Given that run accepts only a query name, the run sub-command should automatically quote its argument to ensure that the SQL tokenizer will consider it one token. Thanks for considering! -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/20161112210932.11301.32281%40celery-worker-107.ash1.bb-inf.net. For more options, visit https://groups.google.com/d/optout.
