Open ththvseo opened 6 years ago
both query and upsert interactively ask the user for confirmation after each batch of entries: https://github.com/nshmura/dsio/blob/bd941641acb0201322c8a789acee77a3b7a584d5/action/query.go#L310 https://github.com/nshmura/dsio/blob/bd941641acb0201322c8a789acee77a3b7a584d5/action/upsert.go#L79
query
upsert
this is kind of silly, especially when batch-processing (large amounts of) data.
it should be removed or at least made optional.
if the intention is to make interactive use more covenient, it could maybe be enabled/disabled automatically enabled only for interactive sessions: https://rosettacode.org/wiki/Check_output_device_is_a_terminal#Go
👍 the url is very informative。 I will consider about batch-processing.
I would add to this an option to always overwrite output file to avoid having to interactively answer that too.
both
query
andupsert
interactively ask the user for confirmation after each batch of entries: https://github.com/nshmura/dsio/blob/bd941641acb0201322c8a789acee77a3b7a584d5/action/query.go#L310 https://github.com/nshmura/dsio/blob/bd941641acb0201322c8a789acee77a3b7a584d5/action/upsert.go#L79this is kind of silly, especially when batch-processing (large amounts of) data.
it should be removed or at least made optional.
if the intention is to make interactive use more covenient, it could maybe be enabled/disabled automatically enabled only for interactive sessions: https://rosettacode.org/wiki/Check_output_device_is_a_terminal#Go