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

#pragma once

#include "../zen.h"

namespace zen {

class HistoryCommand : public ZenCmdBase
{
public:
	HistoryCommand();
	~HistoryCommand();

	static constexpr char Name[]		= "history";
	static constexpr char Description[] = "List recent zen/zenserver invocations and optionally re-run one";

	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_Filter;
	bool			 m_Print = false;
	bool			 m_List	 = false;
};

}  // namespace zen