| 1 | /*++ |
| 2 | |
| 3 | Copyright (c) Microsoft. All rights reserved. |
| 4 | |
| 5 | Module Name: |
| 6 | |
| 7 | ContainerPruneCommand.cpp |
| 8 | |
| 9 | Abstract: |
| 10 | |
| 11 | Implementation of command execution logic. |
| 12 | |
| 13 | --*/ |
| 14 | |
| 15 | #include "ContainerCommand.h" |
| 16 | #include "CLIExecutionContext.h" |
| 17 | #include "ContainerTasks.h" |
| 18 | #include "SessionTasks.h" |
| 19 | #include "Task.h" |
| 20 | |
| 21 | using namespace wsl::windows::wslc::execution; |
| 22 | using namespace wsl::windows::wslc::task; |
| 23 | using namespace wsl::shared; |
| 24 | |
| 25 | namespace wsl::windows::wslc { |
| 26 | // Container Prune Command |
| 27 | std::vector<Argument> ContainerPruneCommand::GetArguments() const |
| 28 | { |
| 29 | return {}; |
| 30 | } |
| 31 | |
| 32 | std::wstring ContainerPruneCommand::ShortDescription() const |
| 33 | { |
| 34 | return Localization::WSLCCLI_ContainerPruneDesc(); |
| 35 | } |
| 36 | |
| 37 | std::wstring ContainerPruneCommand::LongDescription() const |
| 38 | { |
| 39 | return Localization::WSLCCLI_ContainerPruneLongDesc(); |
| 40 | } |
| 41 | |
| 42 | void ContainerPruneCommand::ExecuteInternal(CLIExecutionContext& context) const |
| 43 | { |
| 44 | context // |
| 45 | << ResolveSession // |
| 46 | << PruneContainers; |
| 47 | } |
| 48 | } // namespace wsl::windows::wslc |