summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/kbackupfabric/KBCommandsRegister.java
diff options
context:
space:
mode:
authorKeuin <[email protected]>2024-01-20 01:55:59 +0800
committerKeuin <[email protected]>2024-01-20 01:56:09 +0800
commit381843f39f6e896e153cff75b6d16f4481ed2495 (patch)
tree7cddd2d2b43a545cc1c28f59619d363163d5899f /src/main/java/com/keuin/kbackupfabric/KBCommandsRegister.java
parent62ae677f748d90f8117bd063938a4b77f6ad0705 (diff)
feature: get CoW info with command `/kb cow-info`
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/KBCommandsRegister.java')
-rw-r--r--src/main/java/com/keuin/kbackupfabric/KBCommandsRegister.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/KBCommandsRegister.java b/src/main/java/com/keuin/kbackupfabric/KBCommandsRegister.java
index 5bf92e4..7e454d2 100644
--- a/src/main/java/com/keuin/kbackupfabric/KBCommandsRegister.java
+++ b/src/main/java/com/keuin/kbackupfabric/KBCommandsRegister.java
@@ -58,6 +58,10 @@ public final class KBCommandsRegister {
.requires(Permissions.require("kb.list", DEFAULT_REQUIRED_LEVEL))
.executes(KBCommands::list)));
+ dispatcher.register(CommandManager.literal("kb")
+ .then(CommandManager.literal("cow-info")
+ .executes(KBCommands::cowInfo)));
+
// register /kb delete [name] for deleting an existing backup. OP is required.
dispatcher.register(CommandManager.literal("kb")
.then(CommandManager.literal("delete")