Skip to content
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

Design proposal for interactive invocation #6015

Merged
merged 4 commits into from
May 3, 2023
Merged

Conversation

baronfel
Copy link
Member

@baronfel baronfel commented Jan 30, 2023

This PR adds a proposed design doc for interactive invocation to open it up for discussion. I've focused on the invocation scenario for now - there are enough open questions to discuss that will likely take a bit to work through.

Need more details on

  • specific opt-in/opt-out mechanism for interactive mode (mirrored from MSBuild Live Logger)

@baronfel baronfel requested a review from a team as a code owner January 30, 2023 21:12
Copy link
Member

@JanKrivanek JanKrivanek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it!

docs/design/proposed/interactive-mode.md Show resolved Hide resolved
docs/design/proposed/interactive-mode.md Show resolved Hide resolved
docs/design/proposed/interactive-mode.md Outdated Show resolved Hide resolved
@YuliiaKovalova
Copy link
Member

I like it!
Thank you, Chet!


## Workflow

When a user invokes a template, the command should evaluate the user-provided parameters and determine if it should enter interactive mode. This is done by checking if the command is being invoked from a terminal (i.e. isatty is true) and if the command has any symbols that are of type `parameter` and are required _while also having required symbols that are not explicitly provided_. If both of these conditions are true, the command should enter interactive mode.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sounds very reasonable. Below in Detecting interactive mode, there is only the explicit opt-in option.
Do we want implicit switch to interactive mode under the conditions outlined here as well? Or not for the initial version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants