blob: d0693a757516da2c419389d53f4bd35fc34f9906 (
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
33
34
35
36
|
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "../zen.h"
namespace zen {
/** Wipe directories
*/
class WipeCommand : public ZenCmdBase
{
public:
static constexpr char Name[] = "wipe";
static constexpr char Description[] = "Wipe the contents of a directory";
WipeCommand();
~WipeCommand();
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_Directory;
bool m_KeepReadOnlyFiles = true;
bool m_Quiet = false;
bool m_Yes = false;
bool m_PlainProgress = false;
bool m_Verbose = false;
bool m_Dryrun = false;
bool m_BoostWorkerThreads = false;
};
} // namespace zen
|