treasure-data / td

CUI Interface
https://toolbelt.treasuredata.com
49 stars 26 forks source link

Show message to ask `-w` option in `td query` #242

Closed akito19 closed 3 years ago

akito19 commented 3 years ago

td query's -o option write query result to the specific path. However, if -w or --wait is missing, it generates no file even if users give -o option.

Therefore, added message when -o exists and -w isn't exist.

For instance,

% bundle exec td query -d kasai_test 'select * from customers limit 10' -f csv -o ~/test.csv
Job 974621778 is queued.
Use 'td job:show 974621778' to show the status.
The output file won't be generated. Require `-w` or `--wait` option in addition.
tung-vu-td commented 3 years ago

Thanks @akito19. In addition to review comment, please also pull new commits from master to fix failed CI. Thank you 🙇

akito19 commented 3 years ago

@tung-vu-td All CI tests passed and revised output message.