-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Allow for smaller configuration outputs #4754
Conversation
@@ -1369,27 +1369,31 @@ namespace AppInstaller::CLI::Workflow | |||
auto getDetailsOperation = configContext.Processor().GetSetDetailsAsync(configContext.Set(), ConfigurationUnitDetailFlags::ReadOnly); | |||
auto unification = anon::CreateProgressCancellationUnification(std::move(progressScope), getDetailsOperation); | |||
|
|||
bool suppressDetailsOutput = context.Args.Contains(Args::Type::ConfigurationAcceptWarning) && context.Args.Contains(Args::Type::ConfigurationSuppressPrologue); |
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.
Should we validate that supress-prologue
is not used on its own?
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.
It only controls output, not the results. I don't see it as harmful to be passed when it wouldn't do anything.
@@ -3109,4 +3109,7 @@ Please specify one of them using the --source option to proceed.</value> | |||
<data name="StoreInstall_PackageNotAvailableForCurrentSystem" xml:space="preserve"> | |||
<value>The package is not compatible with the current Windows version or platform.</value> | |||
</data> | |||
<data name="ConfigurationSuppressPrologueArgumentDescription" xml:space="preserve"> | |||
<value>Suppress the configuration prologue when possible</value> |
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.
I don't think this will be clear to either users or translators. Do we say "prologue" anywhere else?
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Change
To prevent anything from outputting to our console, call
FreeConsole
in the configuration server.To allow for output of primarily results, when
--accept-configuration-agreements
is passed, one can now also pass--suppress-prologue
to prevent the initial details from being presented. The only output (beyond the temporary progress spinner+text) will then be the disclaimer warning and the individual results.Validation
Confirmed that both changes work manually.
Microsoft Reviewers: Open in CodeFlow