ListCommand.h (895B)
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 // Command to get the set of installed packages on the system. 9 struct ListCommand final : public Command 10 { 11 ListCommand(std::string_view parent) : Command("list", { "ls" }, parent) {} 12 13 std::vector<Argument> GetArguments() const override; 14 15 Resource::LocString ShortDescription() const override; 16 Resource::LocString LongDescription() const override; 17 18 void Complete(Execution::Context& context, Execution::Args::Type valueType) const override; 19 20 Utility::LocIndView HelpLink() const override; 21 22 protected: 23 void ValidateArgumentsInternal(Execution::Args& execArgs) const override; 24 void ExecuteInternal(Execution::Context& context) const override; 25 }; 26 }