aboutsummaryrefslogtreecommitdiff
path: root/zen/zen.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-10-01 18:59:51 +0200
committerStefan Boberg <[email protected]>2021-10-01 18:59:51 +0200
commitc885ef7826c7faeb60df0297e72ab101704efad5 (patch)
treecbbbf0b2d89e1e6a325cedc2dd0a4d966075ef20 /zen/zen.cpp
parentcas: added some GC stubs (diff)
downloadarchived-zen-c885ef7826c7faeb60df0297e72ab101704efad5.tar.xz
archived-zen-c885ef7826c7faeb60df0297e72ab101704efad5.zip
zen: added print/printpackage subcommands to help in debugging or inspecting CbObject data generally
Diffstat (limited to 'zen/zen.cpp')
-rw-r--r--zen/zen.cpp29
1 files changed, 17 insertions, 12 deletions
diff --git a/zen/zen.cpp b/zen/zen.cpp
index 86c41d658..3c33ff5e0 100644
--- a/zen/zen.cpp
+++ b/zen/zen.cpp
@@ -9,6 +9,7 @@
#include "cmds/dedup.h"
#include "cmds/deploy.h"
#include "cmds/hash.h"
+#include "cmds/print.h"
#include "cmds/run.h"
#include "cmds/status.h"
#include "cmds/top.h"
@@ -98,18 +99,20 @@ main(int argc, char** argv)
auto _ = zen::MakeGuard([] { spdlog::shutdown(); });
- HashCommand HashCmd;
- CopyCommand CopyCmd;
- DedupCommand DedupCmd;
- DeployCommand DeployCmd;
- DropCommand DropCmd;
- ChunkCommand ChunkCmd;
- RunCommand RunCmd;
- StatusCommand StatusCmd;
- TopCommand TopCmd;
- PsCommand PsCmd;
- UpCommand UpCmd;
- DownCommand DownCmd;
+ HashCommand HashCmd;
+ CopyCommand CopyCmd;
+ DedupCommand DedupCmd;
+ DeployCommand DeployCmd;
+ DropCommand DropCmd;
+ ChunkCommand ChunkCmd;
+ RunCommand RunCmd;
+ StatusCommand StatusCmd;
+ TopCommand TopCmd;
+ PrintCommand PrintCmd;
+ PrintPackageCommand PrintPkgCmd;
+ PsCommand PsCmd;
+ UpCommand UpCmd;
+ DownCommand DownCmd;
#if ZEN_WITH_TESTS
RunTestsCommand RunTestsCmd;
@@ -128,6 +131,8 @@ main(int argc, char** argv)
{"dedup", &DedupCmd, "Dedup files"},
{"drop", &DropCmd, "Drop cache bucket(s)"},
{"hash", &HashCmd, "Compute file hashes"},
+ {"print", &PrintCmd, "Print compact binary object"},
+ {"printpackage", &PrintPkgCmd, "Print compact binary package"},
{"run", &RunCmd, "Remote execution"},
{"status", &StatusCmd, "Show zen status"},
{"ps", &PsCmd, "Enumerate running zen server instances"},