winget-cli

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

SearchCommand.h (837B)


      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 
      9     struct SearchCommand final : public Command
     10     {
     11         SearchCommand(std::string_view parent) : Command("search", { "find" }, 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 }