deepgram / deepgram-cli

CLI for Deepgram's automated speech recognition APIs.
MIT License
7 stars 4 forks source link

Create a guard for commands that require a user's API key to be configured or provided #17

Open lukeocodes opened 3 weeks ago

lukeocodes commented 3 weeks ago

A guard is a common name for something that prevents unauthorized use in web and other apps.

Create a guard function that can be used as a PreRun on a command, to check that an API key is provided from;

  1. Environment variable DEEPGRAM_API_KEY
  2. Flag --api_key
  3. Config file from login or other