aboutsummaryrefslogtreecommitdiff
path: root/src/zen/zen.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-04-23 17:16:16 +0200
committerGitHub Enterprise <[email protected]>2025-04-23 17:16:16 +0200
commit2ec01ef9c6e07b77afa33fe3db6335f231c78006 (patch)
treee2224d7859c4ce88defc046f9e55b13a3f9fa41f /src/zen/zen.cpp
parentparse system dir for builds (#365) (diff)
downloadarchived-zen-2ec01ef9c6e07b77afa33fe3db6335f231c78006.tar.xz
archived-zen-2ec01ef9c6e07b77afa33fe3db6335f231c78006.zip
zen wipe command (#366)
- Feature: New `zen wipe` command for fast cleaning of directories, it will not remove the directory itself, only the content - `--directory` - path to directory to wipe, if the directory does not exist or is empty, no action will be taken - `--keep-readonly` - skip removal of read-only files found in directory, defaults to `true`, set to `false` to remove read-only files - `--quiet` - reduce output to console, defaults to `false` - `--dryrun` - simulate the wipe without removing anything, defaults to `false` - `--yes` - skips prompt to confirm wipe of directory - `--plain-progress` - show progress using plain output - `--verbose` - enable verbose console output - `--boost-workers` - increase the number of worker threads, may cause computer to be less responsive, defaults to `false`
Diffstat (limited to 'src/zen/zen.cpp')
-rw-r--r--src/zen/zen.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/zen/zen.cpp b/src/zen/zen.cpp
index 5ce0a89ec..e442f8a4b 100644
--- a/src/zen/zen.cpp
+++ b/src/zen/zen.cpp
@@ -23,6 +23,7 @@
#include "cmds/up_cmd.h"
#include "cmds/version_cmd.h"
#include "cmds/vfs_cmd.h"
+#include "cmds/wipe_cmd.h"
#include "cmds/workspaces_cmd.h"
#include <zencore/callstack.h>
@@ -557,6 +558,7 @@ main(int argc, char** argv)
UpCommand UpCmd;
VersionCommand VersionCmd;
VfsCommand VfsCmd;
+ WipeCommand WipeCmd;
WorkspaceCommand WorkspaceCmd;
WorkspaceShareCommand WorkspaceShareCmd;
@@ -613,6 +615,7 @@ main(int argc, char** argv)
{"version", &VersionCmd, "Get zen server version"},
{"vfs", &VfsCmd, "Manage virtual file system"},
{"flush", &FlushCmd, "Flush storage"},
+ {WipeCommand::Name, &WipeCmd, WipeCommand::Description},
{WorkspaceCommand::Name, &WorkspaceCmd, WorkspaceCommand::Description},
{WorkspaceShareCommand::Name, &WorkspaceShareCmd, WorkspaceShareCommand::Description},
// clang-format on