blob: c74cdbbd08e6cb622a4434a330d5c991fa768327 (
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
32
|
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "../zen.h"
#include <filesystem>
namespace zen {
class UiCommand : public ZenCmdBase
{
public:
UiCommand();
~UiCommand();
static constexpr char Name[] = "ui";
static constexpr char Description[] = "Launch web browser with zen server UI";
virtual void Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) override;
virtual cxxopts::Options& Options() override { return m_Options; }
private:
void OpenBrowser(std::string_view HostName);
cxxopts::Options m_Options{Name, Description};
std::string m_HostName;
std::string m_DashboardPath = "/dashboard/";
bool m_All = false;
};
} // namespace zen
|