-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
would be nice to provide a query directly when running the program #1
Comments
yep. i also want this and i can easily implement this. note, you can already write one or more queries to stdin and that'll work too
|
done! |
cheers! |
oh and thank you for publishing this excellent tool. Much more convenient than curl ;) |
Still one complaint about this actually. When executing with a query it would seem more natural to me, to have influx-cli to exit once the query is complete, not drop into the shell. |
But then you could just as well do |
Exiting after running a query as a cmdline param is just what I expected coming from psql. From my perspective it's OK as it is now (I hadn't realised that <<< would achieve what I wanted). If more people complain about this, then I guess you should review whether to better document or change that behaviour |
fwiw that issue is now being discussed in #5 |
i.e.
influx-cli -db=timeseries -q=[query]
or perhaps the query could just be a positional argument (that's how postgres does that as I recall). My particular reason for this is to pipe to less but there's many other reasons too.
The text was updated successfully, but these errors were encountered: