master
h 36 lines 890 Bytes
Raw
1 /*++
2
3 Copyright (c) Microsoft. All rights reserved.
4
5 Module Name:
6
7 RootCommand.h
8
9 Abstract:
10
11 Declaration of the RootCommand, which is the root of all commands in the CLI.
12
13 --*/
14 #pragma once
15 #include "Command.h"
16
17 namespace wsl::windows::wslc {
18 struct RootCommand final : public Command
19 {
20 constexpr static std::wstring_view CommandName = L"root";
21
22 RootCommand() : Command(CommandName, {})
23 {
24 }
25
26 std::vector<std::unique_ptr<Command>> GetCommands() const override;
27 std::vector<Argument> GetArguments() const override;
28 std::vector<Argument> GetGlobalArguments() const override;
29 std::vector<Argument> GetEnvArguments() const override;
30 std::wstring ShortDescription() const override;
31 std::wstring LongDescription() const override;
32
33 protected:
34 virtual void ExecuteInternal(CLIExecutionContext& context) const;
35 };
36 } // namespace wsl::windows::wslc