aboutsummaryrefslogtreecommitdiff
path: root/src/zen/cmds/run_cmd.h
blob: 300c08c5bf72148cac6b504f6e715174c88261e5 (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
// Copyright Epic Games, Inc. All Rights Reserved.

#pragma once

#include "../zen.h"

namespace zen {

class RunCommand : public ZenCmdBase
{
public:
	static constexpr char Name[]		= "run";
	static constexpr char Description[] = "Run command with special options";

	RunCommand();
	~RunCommand();

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

private:
	cxxopts::Options m_Options{Name, Description};
	int				 m_RunCount = 0;
	int				 m_RunTime	= -1;
	std::string		 m_BaseDirectory;
	int				 m_MaxBaseDirectoryCount = 10;
};

}  // namespace zen