-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathVolumeInspectCommand.cpp
More file actions
50 lines (38 loc) · 1.06 KB
/
VolumeInspectCommand.cpp
File metadata and controls
50 lines (38 loc) · 1.06 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
/*++
Copyright (c) Microsoft. All rights reserved.
Module Name:
VolumeInspectCommand.cpp
Abstract:
Implementation of command execution logic.
--*/
#include "VolumeCommand.h"
#include "CLIExecutionContext.h"
#include "SessionTasks.h"
#include "VolumeTasks.h"
#include "Task.h"
using namespace wsl::windows::wslc::execution;
using namespace wsl::windows::wslc::task;
using namespace wsl::shared;
namespace wsl::windows::wslc {
// Volume Inspect Command
std::vector<Argument> VolumeInspectCommand::GetArguments() const
{
return {
Argument::Create(ArgType::VolumeName, true, NO_LIMIT),
Argument::Create(ArgType::Session),
};
}
std::wstring VolumeInspectCommand::ShortDescription() const
{
return Localization::WSLCCLI_VolumeInspectDesc();
}
std::wstring VolumeInspectCommand::LongDescription() const
{
return Localization::WSLCCLI_VolumeInspectLongDesc();
}
void VolumeInspectCommand::ExecuteInternal(CLIExecutionContext& context) const
{
context << CreateSession //
<< InspectVolumes;
}
} // namespace wsl::windows::wslc