-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathImageCommand.cpp
More file actions
56 lines (44 loc) · 1.54 KB
/
ImageCommand.cpp
File metadata and controls
56 lines (44 loc) · 1.54 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
52
53
54
55
56
/*++
Copyright (c) Microsoft. All rights reserved.
Module Name:
ImageCommand.cpp
Abstract:
Implementation of command execution logic.
--*/
#include "CLIExecutionContext.h"
#include "ImageCommand.h"
using namespace wsl::windows::wslc::execution;
using namespace wsl::shared;
namespace wsl::windows::wslc {
// Image Root Command
std::vector<std::unique_ptr<Command>> ImageCommand::GetCommands() const
{
std::vector<std::unique_ptr<Command>> commands;
commands.push_back(std::make_unique<ImageBuildCommand>(FullName()));
commands.push_back(std::make_unique<ImageRemoveCommand>(FullName()));
commands.push_back(std::make_unique<ImageInspectCommand>(FullName()));
commands.push_back(std::make_unique<ImageListCommand>(FullName()));
commands.push_back(std::make_unique<ImageLoadCommand>(FullName()));
commands.push_back(std::make_unique<ImagePullCommand>(FullName()));
commands.push_back(std::make_unique<ImagePushCommand>(FullName()));
commands.push_back(std::make_unique<ImageSaveCommand>(FullName()));
commands.push_back(std::make_unique<ImageTagCommand>(FullName()));
return commands;
}
std::vector<Argument> ImageCommand::GetArguments() const
{
return {};
}
std::wstring ImageCommand::ShortDescription() const
{
return Localization::WSLCCLI_ImageCommandDesc();
}
std::wstring ImageCommand::LongDescription() const
{
return Localization::WSLCCLI_ImageCommandLongDesc();
}
void ImageCommand::ExecuteInternal(CLIExecutionContext& context) const
{
OutputHelp();
}
} // namespace wsl::windows::wslc