-
Couldn't load subscription status.
- Fork 17
feat: add interactive prompting to manifest add command #174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: beeme1mr <[email protected]>
Co-authored-by: beeme1mr <[email protected]>
Co-authored-by: beeme1mr <[email protected]>
Co-authored-by: beeme1mr <[email protected]>
Co-authored-by: beeme1mr <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot are there any docs that need to be updated?
Co-authored-by: beeme1mr <[email protected]>
Yes, the documentation has been updated. The
|
… prompting Signed-off-by: Michael Beemer <[email protected]>
Signed-off-by: Michael Beemer <[email protected]>
Signed-off-by: Michael Beemer <[email protected]>
| return errors.New("flag-key argument is required when --no-input is set") | ||
| } | ||
| // Prompt for flag key | ||
| promptText := "Enter flag key (e.g., 'my-feature', 'enable-new-ui')" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@beeme1mr this is a good idea, the prompting will help us in demo, we won't need to remember the cli flags/args as much
Enhances
manifest addto interactively prompt for missing required and optional properties, improving usability while maintaining automation compatibility.Changes
Interactive prompts for missing values
--typewhen omitted, with "boolean" pre-selected as default--default-valuewhen omitted, with type-specific input (select for boolean, text for others)--descriptionwhen omitted, skippable with EnterpromptForDefaultValuefunction frompull.goAutomation safeguards
--no-inputflag to disable all promptsconfig.ShouldDisableInteractivePrompts()for reuse by other commandsTest coverage
--no-inputbehavior with missing required/optional flags--no-inputfor missing default-value caseDocumentation
Example
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.