Copilot-cli: env init returns error if not in a workspace

Created on 6 Aug 2020  Â·  3Comments  Â·  Source: aws/copilot-cli

When I run copilot env init and I'm not in a copilot workspace, then instead of prompting me to choose which application do I want to use, the CLI just errors out saying ✘ no application found: runapp initorcdinto your workspace please.

good first issue typbug

Most helpful comment

Hi, I'd like to tackle that.
Do you have example or idea of prompting ?

All 3 comments

Hi, I'd like to tackle that.
Do you have example or idea of prompting ?

Hi, I'd like to tackle that.

Do you have example or idea of prompting ?

Take a look at the Ask() section of env_init. You can do something similar for what we do for name. If the app name is empty, call the SelectApp method prompt.

Thank you for your help!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kohidave picture kohidave  Â·  4Comments

kohidave picture kohidave  Â·  3Comments

aidansteele picture aidansteele  Â·  3Comments

camilosantana picture camilosantana  Â·  3Comments

srrengar picture srrengar  Â·  3Comments