aboutsummaryrefslogtreecommitdiff
path: root/src/zen/cmds/status_cmd.h
blob: df5df3066c7365251790147fc5e44861ecf34d3d (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"

#include <zencore/filesystem.h>

namespace zen {

class StatusCommand : public ZenCmdBase
{
public:
	static constexpr char Name[]		= "status";
	static constexpr char Description[] = "Show zen status";

	StatusCommand();
	~StatusCommand();

	virtual void			  Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) override;
	virtual cxxopts::Options& Options() override { return m_Options; }

private:
	int GetLockFileEffectivePort() const;

	cxxopts::Options	  m_Options{Name, Description};
	uint16_t			  m_Port = 0;
	std::filesystem::path m_DataDir;
};

}  // namespace zen