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 #118

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#L122

     */
    // HACK: Used as a 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
    public nonInterative = process.env.TWOKEYS_NONINTERACTIVE === "true";

    constructor(logger: Logger, options?: Partial<PromptOptions>) {

674f17e55bbfba4322780246d221bfb1e589f9a3