Skip to content

Commit

Permalink
Make proxy arguments common
Browse files Browse the repository at this point in the history
  • Loading branch information
florelis committed Feb 29, 2024
1 parent 2e065e6 commit 48872d5
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 20 deletions.
2 changes: 2 additions & 0 deletions src/AppInstallerCLICore/Argument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ namespace AppInstaller::CLI
args.push_back(ForType(Args::Type::RetroStyle));
args.push_back(ForType(Args::Type::VerboseLogs));
args.emplace_back(Args::Type::DisableInteractivity, Resource::String::DisableInteractivityArgumentDescription, ArgumentType::Flag, false);
args.push_back(ForType(Args::Type::Proxy));
args.push_back(ForType(Args::Type::NoProxy));
}

std::string Argument::GetUsageString() const
Expand Down
2 changes: 0 additions & 2 deletions src/AppInstallerCLICore/Commands/DownloadCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ namespace AppInstaller::CLI
Argument::ForType(Args::Type::CustomHeader),
Argument::ForType(Args::Type::AuthenticationMode),
Argument::ForType(Args::Type::AuthenticationAccount),
Argument::ForType(Args::Type::Proxy),
Argument::ForType(Args::Type::NoProxy),
Argument::ForType(Args::Type::AcceptPackageAgreements),
Argument::ForType(Args::Type::AcceptSourceAgreements),
};
Expand Down
2 changes: 0 additions & 2 deletions src/AppInstallerCLICore/Commands/ImportCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ namespace AppInstaller::CLI
Argument{ Execution::Args::Type::IgnoreUnavailable, Resource::String::ImportIgnoreUnavailableArgumentDescription, ArgumentType::Flag },
Argument{ Execution::Args::Type::IgnoreVersions, Resource::String::ImportIgnorePackageVersionsArgumentDescription, ArgumentType::Flag },
Argument::ForType(Execution::Args::Type::NoUpgrade),
Argument::ForType(Execution::Args::Type::Proxy),
Argument::ForType(Execution::Args::Type::NoProxy),
Argument::ForType(Execution::Args::Type::AcceptPackageAgreements),
Argument::ForType(Execution::Args::Type::AcceptSourceAgreements),
};
Expand Down
2 changes: 0 additions & 2 deletions src/AppInstallerCLICore/Commands/InstallCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ namespace AppInstaller::CLI
Argument::ForType(Args::Type::Rename),
Argument::ForType(Args::Type::UninstallPrevious),
Argument::ForType(Args::Type::Force),
Argument::ForType(Args::Type::Proxy),
Argument::ForType(Args::Type::NoProxy),
Argument{ Args::Type::IncludeUnknown, Resource::String::IncludeUnknownArgumentDescription, ArgumentType::Flag, Argument::Visibility::Hidden},
};
}
Expand Down
2 changes: 0 additions & 2 deletions src/AppInstallerCLICore/Commands/ListCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ namespace AppInstaller::CLI
Argument::ForType(Execution::Args::Type::CustomHeader),
Argument::ForType(Execution::Args::Type::AuthenticationMode),
Argument::ForType(Execution::Args::Type::AuthenticationAccount),
Argument::ForType(Execution::Args::Type::Proxy),
Argument::ForType(Execution::Args::Type::NoProxy),
Argument::ForType(Execution::Args::Type::AcceptSourceAgreements),
Argument{ Execution::Args::Type::Upgrade, Resource::String::UpgradeArgumentDescription, ArgumentType::Flag, Argument::Visibility::Help },
Argument{ Execution::Args::Type::IncludeUnknown, Resource::String::IncludeUnknownInListArgumentDescription, ArgumentType::Flag },
Expand Down
2 changes: 0 additions & 2 deletions src/AppInstallerCLICore/Commands/SearchCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ namespace AppInstaller::CLI
Argument::ForType(Execution::Args::Type::CustomHeader),
Argument::ForType(Execution::Args::Type::AuthenticationMode),
Argument::ForType(Execution::Args::Type::AuthenticationAccount),
Argument::ForType(Execution::Args::Type::Proxy),
Argument::ForType(Execution::Args::Type::NoProxy),
Argument::ForType(Execution::Args::Type::AcceptSourceAgreements),
Argument::ForType(Execution::Args::Type::ListVersions),
};
Expand Down
2 changes: 0 additions & 2 deletions src/AppInstallerCLICore/Commands/ShowCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ namespace AppInstaller::CLI
Argument::ForType(Execution::Args::Type::CustomHeader),
Argument::ForType(Execution::Args::Type::AuthenticationMode),
Argument::ForType(Execution::Args::Type::AuthenticationAccount),
Argument::ForType(Execution::Args::Type::Proxy),
Argument::ForType(Execution::Args::Type::NoProxy),
Argument::ForType(Execution::Args::Type::AcceptSourceAgreements),
};
}
Expand Down
4 changes: 0 additions & 4 deletions src/AppInstallerCLICore/Commands/SourceCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ namespace AppInstaller::CLI
Argument::ForType(Args::Type::SourceArg),
Argument::ForType(Args::Type::SourceType),
Argument::ForType(Args::Type::CustomHeader),
Argument::ForType(Args::Type::Proxy),
Argument::ForType(Args::Type::NoProxy),
Argument::ForType(Args::Type::AcceptSourceAgreements),
};
}
Expand Down Expand Up @@ -128,8 +126,6 @@ namespace AppInstaller::CLI
{
return {
Argument::ForType(Args::Type::SourceName),
Argument::ForType(Execution::Args::Type::Proxy),
Argument::ForType(Execution::Args::Type::NoProxy),
};
}

Expand Down
2 changes: 0 additions & 2 deletions src/AppInstallerCLICore/Commands/UninstallCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ namespace AppInstaller::CLI
Argument::ForType(Args::Type::CustomHeader),
Argument::ForType(Args::Type::AuthenticationMode),
Argument::ForType(Args::Type::AuthenticationAccount),
Argument::ForType(Args::Type::Proxy),
Argument::ForType(Args::Type::NoProxy),
Argument::ForType(Args::Type::AcceptSourceAgreements),
};
}
Expand Down
2 changes: 0 additions & 2 deletions src/AppInstallerCLICore/Commands/UpgradeCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ namespace AppInstaller::CLI
Argument{ Args::Type::IncludePinned, Resource::String::IncludePinnedArgumentDescription, ArgumentType::Flag},
Argument::ForType(Args::Type::UninstallPrevious),
Argument::ForType(Args::Type::Force),
Argument::ForType(Args::Type::Proxy),
Argument::ForType(Args::Type::NoProxy),
};
}

Expand Down

0 comments on commit 48872d5

Please sign in to comment.