RepairCommand.h (834B)
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 RepairCommand final : public Command 9 { 10 RepairCommand(std::string_view parent) : Command("repair", { "fix" }, 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 Utility::LocIndView HelpLink() const override; 20 21 protected: 22 void ValidateArgumentsInternal(Execution::Args& execArgs) const override; 23 void ExecuteInternal(Execution::Context& context) const override; 24 }; 25 }