dsio icon indicating copy to clipboard operation
dsio copied to clipboard

remove manual confirmation after each batch (or make it optional)

Open ththvseo opened this issue 7 years ago • 2 comments

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

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

ththvseo avatar Feb 15 '18 18:02 ththvseo

👍 the url is very informative。 I will consider about batch-processing.

nshmura avatar Feb 17 '18 15:02 nshmura

I would add to this an option to always overwrite output file to avoid having to interactively answer that too.

ggalmazor avatar Jul 18 '18 20:07 ggalmazor