Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@ththvseo

Description

@ththvseo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions