Skip to content

decide 0.4.1

Latest

Choose a tag to compare

@vsekhar vsekhar released this 27 Sep 22:24

--api-key - reads the API key from standard input, so the key stays out of your shell history and out of ps. At a terminal, decide prompts with API key: and turns echo off while you type. From a pipe it reads one line with no prompt. A bare --api-key with no value does the same. Both the run line and --set-config take it, so setup is now:

brew install vsekhar/tap/decide
decide --set-config --model typesafe:jev-latest --api-key -

A script pipes it: printf '%s' "$KEY" | decide --set-config --api-key -.

  • An empty key, end of file, or standard input that does not read exits 10 and writes no config.
  • - still reads standard input once per run: --api-key - beside --context - or --questions - is refused.
  • Ctrl-C at the prompt puts the terminal back before the process ends.
  • --help, the README's setup and command line configuration sections, and TESTING.md describe the flag.