-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathSessionCommand.cpp
More file actions
52 lines (40 loc) · 1.25 KB
/
SessionCommand.cpp
File metadata and controls
52 lines (40 loc) · 1.25 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
/*++
Copyright (c) Microsoft. All rights reserved.
Module Name:
SessionCommand.cpp
Abstract:
Implementation of SessionCommand command tree.
--*/
#include "CLIExecutionContext.h"
#include "ExecutionContextData.h"
#include "SessionCommand.h"
using namespace wsl::windows::wslc::execution;
using namespace wsl::shared;
namespace wsl::windows::wslc {
// Session Root Command
std::vector<std::unique_ptr<Command>> SessionCommand::GetCommands() const
{
std::vector<std::unique_ptr<Command>> commands;
commands.push_back(std::make_unique<SessionEnterCommand>(FullName()));
commands.push_back(std::make_unique<SessionListCommand>(FullName()));
commands.push_back(std::make_unique<SessionShellCommand>(FullName()));
commands.push_back(std::make_unique<SessionTerminateCommand>(FullName()));
return commands;
}
std::vector<Argument> SessionCommand::GetArguments() const
{
return {};
}
std::wstring SessionCommand::ShortDescription() const
{
return Localization::WSLCCLI_SessionCommandDesc();
}
std::wstring SessionCommand::LongDescription() const
{
return Localization::WSLCCLI_SessionCommandLongDesc();
}
void SessionCommand::ExecuteInternal(CLIExecutionContext& context) const
{
OutputHelp();
}
} // namespace wsl::windows::wslc