Stoobly / stoobly-agent

Record, mock, and test HTTP/HTTPS requests. CLI agent for Stoobly.
Other
6 stars 0 forks source link

Prompt user for missing keys when enabling remote mode #56

Closed stoobmmelier closed 2 years ago

stoobmmelier commented 2 years ago
$ stoobly-agent feature remote enable
$ stoobly-agent feature remote show
True

$ stoobly-agent request list
Error: Missing project key

After enabling remote mode, none of the commands will work as expected until project key, api key, etc. are set. We should prompt the user for these, display a warning with how to set them, OR give them the url to visit

If they visit the localhost:4200 dashboard, that will set those keys for them

Jvlythical commented 2 years ago

I think for stoobly-agent feature remote enable, we can only prompt for api_key. I think only missing project key, we can maybe prompt them to enter project key there.