ExperimentalCommand.h (922B)
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 ExperimentalCommand final : public Command 10 { 11 // This command is used as an example on how experimental features can be used. 12 // To enable this command set ExperimentalCmd = true in the settings file. 13 ExperimentalCommand(std::string_view parent) : Command("experimental", {}, parent, Settings::ExperimentalFeature::Feature::ExperimentalCmd) {} 14 15 virtual std::vector<Argument> GetArguments() const override; 16 17 virtual Resource::LocString ShortDescription() const override; 18 virtual Resource::LocString LongDescription() const override; 19 20 Utility::LocIndView HelpLink() const override; 21 22 protected: 23 void ExecuteInternal(Execution::Context& context) const override; 24 }; 25 }