winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

RootCommand.h (823B)


      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 RootCommand final : public Command
      9     {
     10         constexpr static std::string_view CommandName = "root"sv;
     11 
     12         RootCommand() : Command(CommandName, {}) {}
     13 
     14         std::vector<std::unique_ptr<Command>> GetCommands() const override;
     15         std::vector<Argument> GetArguments() const override;
     16 
     17         Resource::LocString ShortDescription() const override;
     18         Resource::LocString LongDescription() const override;
     19 
     20         Utility::LocIndView HelpLink() const override;
     21 
     22         void Execute(Execution::Context& context) const override;
     23 
     24     protected:
     25         virtual void ExecuteInternal(Execution::Context& context) const;
     26     };
     27 }