forked from microsoft/winget-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into msstoredownload
- Loading branch information
Showing
69 changed files
with
2,127 additions
and
581 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
#include "pch.h" | ||
#include "ConfigureExportCommand.h" | ||
#include "Workflows/ConfigurationFlow.h" | ||
#include "ConfigurationCommon.h" | ||
|
||
using namespace AppInstaller::CLI::Workflow; | ||
|
||
namespace AppInstaller::CLI | ||
{ | ||
std::vector<Argument> ConfigureExportCommand::GetArguments() const | ||
{ | ||
return { | ||
Argument{ Execution::Args::Type::OutputFile, Resource::String::OutputFileArgumentDescription, true }, | ||
Argument{ Execution::Args::Type::ConfigurationExportPackageId, Resource::String::ConfigureExportPackageId }, | ||
Argument{ Execution::Args::Type::ConfigurationExportModule, Resource::String::ConfigureExportModule }, | ||
Argument{ Execution::Args::Type::ConfigurationExportResource, Resource::String::ConfigureExportResource }, | ||
Argument{ Execution::Args::Type::ConfigurationModulePath, Resource::String::ConfigurationModulePath }, | ||
}; | ||
} | ||
|
||
Resource::LocString ConfigureExportCommand::ShortDescription() const | ||
{ | ||
return { Resource::String::ConfigureExportCommandShortDescription }; | ||
} | ||
|
||
Resource::LocString ConfigureExportCommand::LongDescription() const | ||
{ | ||
return { Resource::String::ConfigureExportCommandLongDescription }; | ||
} | ||
|
||
Utility::LocIndView ConfigureExportCommand::HelpLink() const | ||
{ | ||
return "https://aka.ms/winget-command-configure#export"_liv; | ||
} | ||
|
||
void ConfigureExportCommand::ExecuteInternal(Execution::Context& context) const | ||
{ | ||
context << | ||
VerifyIsFullPackage << | ||
CreateConfigurationProcessor << | ||
CreateOrOpenConfigurationSet << | ||
AddWinGetPackageAndResource << | ||
WriteConfigFile; | ||
} | ||
|
||
void ConfigureExportCommand::ValidateArgumentsInternal(Execution::Args& execArgs) const | ||
{ | ||
Configuration::ValidateCommonArguments(execArgs); | ||
|
||
bool validInputArgs = false; | ||
if (execArgs.Contains(Execution::Args::Type::ConfigurationExportModule, Execution::Args::Type::ConfigurationExportResource) || | ||
execArgs.Contains(Execution::Args::Type::ConfigurationExportPackageId)) | ||
{ | ||
validInputArgs = true; | ||
} | ||
|
||
if (!validInputArgs) | ||
{ | ||
throw CommandException(Resource::String::ConfigureExportArgumentError); | ||
} | ||
} | ||
} |
Oops, something went wrong.
e3e17f0
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.
@check-spelling-bot Report
🔴 Please review
See the 📜action log for details.
Unrecognized words (10)
Downdload
LXBw
MUpt
NZn
QJn
Vuc
Vzd
Xbox
Xjp
YGkj
Previously acknowledged words that are now absent
ata bitspace EPester epth hrow issuetitle mapview Mta oop PFM rzkzqaqjwj sfs STARTUPINFOW testdata visualstudiocode :arrow_right:To accept ✔️ these unrecognized words as correct and remove the previously acknowledged and now absent words, run the following commands
... in a clone of the git@github.com:yao-msft/winget-cli.git repository
on the
msstoredownload
branch (ℹ️ how do I use this?):Available 📚 dictionaries could cover words not in the 📘 dictionary
This includes both expected items (547) from .github/actions/spelling/expect.txt and unrecognized words (10)
Consider adding them using (in
.github/workflows/spelling3.yml
):To stop checking additional dictionaries, add:
Warnings (1)
See the 📜action log for details.
See ℹ️ Event descriptions for more information.
If the flagged items are 🤯 false positives
If items relate to a ...
binary file (or some other file you wouldn't want to check at all).
Please add a file path to the
excludes.txt
file matching the containing file.File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.
^
refers to the file's path from the root of the repository, so^README\.md$
would exclude README.md (on whichever branch you're using).well-formed pattern.
If you can write a pattern that would match it,
try adding it to the
patterns.txt
file.Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.
Note that patterns can't match multiline strings.