Gum-Joe / 2Keys

A easy to setup second keyboard, designed for everyone.
GNU General Public License v3.0
11 stars 4 forks source link

Allow a --no-interactive options eventually #120

Open github-actions[bot] opened 4 years ago

github-actions[bot] commented 4 years ago

Allow a --no-interactive options eventually

https://github.com/Gum-Joe/2Keys/blob/2bc9ab3637736d71e0d6dee0f340558990873227/packages/@twokeys/core/src/prompts.ts#L184

        // Get response index
        // HACK: Test shortcut to return default or 0 when TWOKEYS_NONINTERACTIVE is true.
        // TODO: Allow a --no-interactive options eventually
        // TODO: Better docs for TWOKEYS_NONINTERACTIVE - currently undocumented
        /* istanbul ignore next */
        if (this.nonInterative) {
            this.logger.warn(`Returning value of ${config.buttons[config.defaultButton ?? 0]} as TWOKEYS_NONINTERACTIVE is set.`);

3de0e72caf6cbe4b69b2da3a4764d913277ecf52