master
cpp 45 lines 917 Bytes
Raw
1 /*++
2
3 Copyright (c) Microsoft. All rights reserved.
4
5 Module Name:
6
7 SystemInfoCommand.cpp
8
9 Abstract:
10
11 Implementation of the system info command.
12
13 --*/
14 #include "CLIExecutionContext.h"
15 #include "SessionTasks.h"
16 #include "SystemCommand.h"
17 #include "Task.h"
18
19 using namespace wsl::windows::wslc::execution;
20 using namespace wsl::windows::wslc::task;
21 using namespace wsl::shared;
22
23 namespace wsl::windows::wslc {
24 std::vector<Argument> SystemInfoCommand::GetArguments() const
25 {
26 return {
27 Argument::Create(ArgType::Format),
28 };
29 }
30
31 std::wstring SystemInfoCommand::ShortDescription() const
32 {
33 return Localization::WSLCCLI_SystemInfoDesc();
34 }
35
36 std::wstring SystemInfoCommand::LongDescription() const
37 {
38 return Localization::WSLCCLI_SystemInfoLongDesc();
39 }
40
41 void SystemInfoCommand::ExecuteInternal(CLIExecutionContext& context) const
42 {
43 context << ShowSystemInfo;
44 }
45 } // namespace wsl::windows::wslc