-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathImagePushCommand.cpp
More file actions
51 lines (39 loc) · 1.03 KB
/
ImagePushCommand.cpp
File metadata and controls
51 lines (39 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*++
Copyright (c) Microsoft. All rights reserved.
Module Name:
ImagePushCommand.cpp
Abstract:
Implementation of the image push command.
--*/
#include "ImageCommand.h"
#include "CLIExecutionContext.h"
#include "ImageTasks.h"
#include "SessionTasks.h"
#include "Task.h"
using namespace wsl::windows::wslc::execution;
using namespace wsl::windows::wslc::task;
using namespace wsl::shared;
namespace wsl::windows::wslc {
// Image Push Command
std::vector<Argument> ImagePushCommand::GetArguments() const
{
return {
Argument::Create(ArgType::ImageId, true),
Argument::Create(ArgType::Session),
};
}
std::wstring ImagePushCommand::ShortDescription() const
{
return Localization::WSLCCLI_ImagePushDesc();
}
std::wstring ImagePushCommand::LongDescription() const
{
return Localization::WSLCCLI_ImagePushLongDesc();
}
void ImagePushCommand::ExecuteInternal(CLIExecutionContext& context) const
{
context //
<< CreateSession //
<< PushImage;
}
} // namespace wsl::windows::wslc