summaryrefslogtreecommitdiff
path: root/.cargo
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-01-23 05:29:28 +0800
committer魏曹先生 <1992414357@qq.com>2026-01-23 05:29:28 +0800
commitfa51df5d748d9d9e3927c56d33e1437a05a8abb1 (patch)
tree4bb8a4c3543ad65d5e261ca4283495cb6cedaece /.cargo
parentcffe4f130d7979df1ebbe84ec77f955b5430e8db (diff)
Update command registration to auto-discover commands
Commands in `./src/cmds/` are now automatically registered. The `[cmd]` section in `.cargo/registry.toml` is now only for overriding or registering commands outside the auto-discovery path.
Diffstat (limited to '.cargo')
-rw-r--r--.cargo/registry.toml12
1 files changed, 9 insertions, 3 deletions
diff --git a/.cargo/registry.toml b/.cargo/registry.toml
index 060ca0a..f581074 100644
--- a/.cargo/registry.toml
+++ b/.cargo/registry.toml
@@ -2,14 +2,20 @@
### Commands ###
################
-[cmd.status]
-node = "status"
-type = "cmds::status::JVStatusCommand"
+# The system will automatically register commands under ./src/cmds/.
+# This section is mainly for registering commands not in the automatic registration directory.
+
+# [cmd.name]
+# node = "name"
+# type = "your_command::JVUnknownCommand"
#################
### Renderers ###
#################
+# Only register renderers here that need to be overridden using the `--renderer` flag.
+# After registration, you can use the format `command --renderer renderer_name` to override the renderer.
+
# Default Renderer
[renderer.default]
name = "default"