master
cpp 44 lines 930 Bytes
Raw
1 /*++
2
3 Copyright (c) Microsoft. All rights reserved.
4
5 Module Name:
6
7 SessionShellCommand.cpp
8
9 Abstract:
10
11 Implementation of the session shell command.
12
13 --*/
14 #include "CLIExecutionContext.h"
15 #include "SessionCommand.h"
16 #include "SessionTasks.h"
17 #include "Task.h"
18
19 using namespace wsl::windows::wslc::execution;
20 using namespace wsl::windows::wslc::task;
21 using namespace wsl::shared;
22
23 namespace wsl::windows::wslc {
24 // Session Shell Command
25 std::vector<Argument> SessionShellCommand::GetArguments() const
26 {
27 return {};
28 }
29
30 std::wstring SessionShellCommand::ShortDescription() const
31 {
32 return Localization::WSLCCLI_SessionShellDesc();
33 }
34
35 std::wstring SessionShellCommand::LongDescription() const
36 {
37 return Localization::WSLCCLI_SessionShellLongDesc();
38 }
39
40 void SessionShellCommand::ExecuteInternal(CLIExecutionContext& context) const
41 {
42 context << ResolveSession << AttachToSession;
43 }
44 } // namespace wsl::windows::wslc