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.
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!
Released in v1.3.0! https://github.com/aws/copilot-cli/releases/tag/v1.3.0
Most helpful comment
Hi, I'd like to tackle that.
Do you have example or idea of prompting ?