InstallCommand.h (905B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 #pragma once 4 #include "Command.h" 5 6 namespace AppInstaller::CLI 7 { 8 struct InstallCommand final : public Command 9 { 10 InstallCommand(std::string_view parent) : Command("install", { "add" }, parent) {} 11 12 std::vector<Argument> GetArguments() const override; 13 14 Resource::LocString ShortDescription() const override; 15 Resource::LocString LongDescription() const override; 16 17 void Complete(Execution::Context& context, Execution::Args::Type valueType) const override; 18 19 void Resume(Execution::Context& context) const override; 20 21 Utility::LocIndView HelpLink() const override; 22 23 protected: 24 void ValidateArgumentsInternal(Execution::Args& execArgs) const override; 25 void ExecuteInternal(Execution::Context& context) const override; 26 }; 27 }