master
cpp 49 lines 1.06 KB
Raw
1 /*++
2
3 Copyright (c) Microsoft. All rights reserved.
4
5 Module Name:
6
7 SystemCommand.cpp
8
9 Abstract:
10
11 Definition of System command tree.
12
13 --*/
14 #include "CLIExecutionContext.h"
15 #include "SessionCommand.h"
16 #include "SystemCommand.h"
17
18 using namespace wsl::windows::wslc::execution;
19 using namespace wsl::shared;
20
21 namespace wsl::windows::wslc {
22 std::vector<std::unique_ptr<Command>> SystemCommand::GetCommands() const
23 {
24 std::vector<std::unique_ptr<Command>> commands;
25 commands.push_back(std::make_unique<SystemInfoCommand>(FullName()));
26 commands.push_back(std::make_unique<SessionCommand>(FullName()));
27 return commands;
28 }
29
30 std::vector<Argument> SystemCommand::GetArguments() const
31 {
32 return {};
33 }
34
35 std::wstring SystemCommand::ShortDescription() const
36 {
37 return Localization::WSLCCLI_SystemCommandDesc();
38 }
39
40 std::wstring SystemCommand::LongDescription() const
41 {
42 return Localization::WSLCCLI_SystemCommandLongDesc();
43 }
44
45 void SystemCommand::ExecuteInternal(CLIExecutionContext& context) const
46 {
47 OutputHelp(context.Terminal);
48 }
49 } // namespace wsl::windows::wslc