blob: 757a8e6914887b4f1794ea582f75703a1b2fcfa3 (
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"
namespace zen {
/** Copy files, possibly using block cloning
*/
class CopyCommand : public ZenCmdBase
{
public:
static constexpr char Name[] = "copy";
static constexpr char Description[] = "Copy file(s)";
CopyCommand();
~CopyCommand();
virtual cxxopts::Options& Options() override { return m_Options; }
virtual void Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) override;
virtual ZenCmdCategory& CommandCategory() const override { return g_UtilitiesCategory; }
private:
cxxopts::Options m_Options{Name, Description};
std::filesystem::path m_CopySource;
std::filesystem::path m_CopyTarget;
bool m_NoClone = false;
bool m_MustClone = false;
};
} // namespace zen
|