master
h 34 lines 761 Bytes
Raw
1 /*++
2
3 Copyright (c) Microsoft. All rights reserved.
4
5 Module Name:
6
7 VersionCommand.h
8
9 Abstract:
10
11 Declaration of the VersionCommand.
12
13 --*/
14 #pragma once
15 #include "Command.h"
16
17 namespace wsl::windows::wslc {
18 struct Terminal;
19 struct VersionCommand final : public Command
20 {
21 constexpr static std::wstring_view CommandName = L"version";
22 VersionCommand(const std::wstring& parent) : Command(CommandName, parent)
23 {
24 }
25
26 static void PrintVersion(Terminal& terminal);
27 std::vector<Argument> GetArguments() const override;
28 std::wstring ShortDescription() const override;
29 std::wstring LongDescription() const override;
30
31 protected:
32 void ExecuteInternal(CLIExecutionContext& context) const override;
33 };
34 } // namespace wsl::windows::wslc