Can't run `aspire agent init` non interactively
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Describe the bug
If you try to run `aspire agent init --non-interactive`, you get an error telling you to use `Use the --non-interactive flag or ensure the CLI is running in an interactive terminal.`. I DID JUST THAT!
```
>aspire agent init --non-interactive
❌ An unexpected error occurred: Interactive input is not supported in this environment. Use the --non-interactive flag or ensure the CLI is running in an interactive terminal.
```
For context, I am trying to build a skill file to help with some of our aspire 13.2 upgrades, and as part of that I wanted to tell the agent to create the skill file. With without a non-interactive way to do so, I will have to fudge it through some other way.
### Expected Behavior
One of the following
1. `aspire agent init --non-interactive` should run non interactively
2. `--non-interactive` shouldn't show up on `aspire agent init --help`
3. The error message should be more specific saying that `aspire agent init is not supported interactively`
### Steps To Reproduce
```bash
aspire agent init --non-interactive
```
### Exceptions (if any)
_No response_
### Aspire doctor output
_No response_
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.