blob: 22f430948d2e0ee49310e711a95e83fd330ca1cf (
plain) (
blame)
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
|
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "../zen.h"
namespace zen {
/** File serving
*/
class ServeCommand : public ZenCmdBase
{
public:
static constexpr char Name[] = "serve";
static constexpr char Description[] = "Serve files from a directory";
ServeCommand();
~ServeCommand();
virtual void Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) override;
virtual cxxopts::Options& Options() override { return m_Options; }
private:
cxxopts::Options m_Options{Name, Description};
std::string m_HostName;
std::string m_ProjectName;
std::string m_OplogName;
std::string m_RootPath;
};
} // namespace zen
|