FontCommand.h (1293B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 #pragma once 4 #include "Command.h" 5 #include <winget/UserSettings.h> 6 7 namespace AppInstaller::CLI 8 { 9 struct FontCommand final : public Command 10 { 11 FontCommand(std::string_view parent) : Command("font", { "fonts" }, parent, Settings::ExperimentalFeature::Feature::Font) {} 12 13 std::vector<std::unique_ptr<Command>> GetCommands() const override; 14 15 Resource::LocString ShortDescription() const override; 16 Resource::LocString LongDescription() const override; 17 18 Utility::LocIndView HelpLink() const override; 19 20 protected: 21 void ExecuteInternal(Execution::Context& context) const override; 22 }; 23 24 struct FontListCommand final : public Command 25 { 26 FontListCommand(std::string_view parent) : Command("list", parent) {} 27 28 std::vector<Argument> GetArguments() const override; 29 30 Resource::LocString ShortDescription() const override; 31 Resource::LocString LongDescription() const override; 32 33 void Complete(Execution::Context& context, Execution::Args::Type valueType) const override; 34 35 Utility::LocIndView HelpLink() const override; 36 37 protected: 38 void ExecuteInternal(Execution::Context& context) const override; 39 }; 40 }