master
cpp 50 lines 1003 Bytes
Raw
1 /*++
2
3 Copyright (c) Microsoft. All rights reserved.
4
5 Module Name:
6
7 ImageLoadCommand.cpp
8
9 Abstract:
10
11 Implementation of command execution logic.
12
13 --*/
14
15 #include "ImageCommand.h"
16 #include "CLIExecutionContext.h"
17 #include "ImageTasks.h"
18 #include "SessionTasks.h"
19 #include "Task.h"
20
21 using namespace wsl::windows::wslc::execution;
22 using namespace wsl::windows::wslc::task;
23 using namespace wsl::shared;
24
25 namespace wsl::windows::wslc {
26 // Image Load Command
27 std::vector<Argument> ImageLoadCommand::GetArguments() const
28 {
29 return {
30 Argument::Create(ArgType::Input),
31 };
32 }
33
34 std::wstring ImageLoadCommand::ShortDescription() const
35 {
36 return Localization::WSLCCLI_ImageLoadDesc();
37 }
38
39 std::wstring ImageLoadCommand::LongDescription() const
40 {
41 return Localization::WSLCCLI_ImageLoadLongDesc();
42 }
43
44 void ImageLoadCommand::ExecuteInternal(CLIExecutionContext& context) const
45 {
46 context //
47 << ResolveSession //
48 << LoadImage;
49 }
50 } // namespace wsl::windows::wslc