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

#pragma once

#include "../zen.h"

namespace zen {

/** Copy files, possibly using block cloning
 */
class CopyCommand : public ZenCmdBase
{
public:
	CopyCommand();
	~CopyCommand();

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

private:
	cxxopts::Options	  m_Options{"copy", "Copy files efficiently"};
	std::filesystem::path m_CopySource;
	std::filesystem::path m_CopyTarget;
	bool				  m_NoClone	  = false;
	bool				  m_MustClone = false;
};

}  // namespace zen