winget-cli

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

ErrorCommand.h (681B)


      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     // This command makes it easier to get information on winget errors.
      9     struct ErrorCommand final : public Command
     10     {
     11         ErrorCommand(std::string_view parent) : Command("error", { "err" }, parent, Visibility::Hidden) {}
     12 
     13         std::vector<Argument> GetArguments() const override;
     14 
     15         Resource::LocString ShortDescription() const override;
     16         Resource::LocString LongDescription() const override;
     17 
     18     protected:
     19         void ExecuteInternal(Execution::Context& context) const override;
     20     };
     21 }