both query and upsert interactively ask the user for confirmation after each batch of entries:
|
ok, err := core.ConfirmYesNoWithDefault("Do you want to output more entities?", true) |
|
msg := fmt.Sprintf("Do you want to upsert more entities (No.%d - No.%d)? ", from+1, to) |
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
both
queryandupsertinteractively ask the user for confirmation after each batch of entries:dsio/action/query.go
Line 310 in bd94164
dsio/action/upsert.go
Line 79 in bd94164
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