master
cpp 47 lines 1.01 KB
Raw
1 /*++
2
3 Copyright (c) Microsoft. All rights reserved.
4
5 Module Name:
6
7 InspectCommand.cpp
8
9 Abstract:
10
11 Implementation of the inspect command.
12 --*/
13 #include "InspectCommand.h"
14 #include "SessionTasks.h"
15 #include "InspectTasks.h"
16
17 using namespace wsl::shared;
18 using namespace wsl::windows::wslc::task;
19
20 namespace wsl::windows::wslc {
21
22 std::vector<Argument> InspectCommand::GetArguments() const
23 {
24 return {
25 Argument::Create(ArgType::ObjectId, {.Required = true, .Limit = Limit::Unlimited}),
26 Argument::Create(ArgType::Type),
27 Argument::Create(ArgType::Size),
28 Argument::Create(ArgType::InspectFormat),
29 };
30 }
31
32 std::wstring InspectCommand::ShortDescription() const
33 {
34 return {Localization::WSLCCLI_InspectDesc()};
35 }
36
37 std::wstring InspectCommand::LongDescription() const
38 {
39 return {Localization::WSLCCLI_InspectLongDesc()};
40 }
41
42 void InspectCommand::ExecuteInternal(CLIExecutionContext& context) const
43 {
44 context << ResolveSession //
45 << Inspect;
46 }
47 } // namespace wsl::windows::wslc