diff options
| author | ruki <[email protected]> | 2026-08-02 00:24:14 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-08-02 00:24:14 +0800 |
| commit | 33ed4e501281de51b2b8dcfa442b176f0dd6d2d2 (patch) | |
| tree | f60409df69b8e5f3de5e43bbfef4d689233482fd /xmake/plugins/plugin/xmake.lua | |
| parent | b41ed3acf227011f4904d95a439a30be9580e5cf (diff) | |
| parent | 8d7a74306556a4c292c0345f1a9aa833116ebcec (diff) | |
Merge pull request #7680 from xmake-io/plugin
Support for plugin distribution based on xmake-repo
Diffstat (limited to 'xmake/plugins/plugin/xmake.lua')
| -rw-r--r-- | xmake/plugins/plugin/xmake.lua | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/xmake/plugins/plugin/xmake.lua b/xmake/plugins/plugin/xmake.lua index 05d9e3631..4aab3daa4 100644 --- a/xmake/plugins/plugin/xmake.lua +++ b/xmake/plugins/plugin/xmake.lua @@ -26,11 +26,18 @@ task("plugin") description = "Manage plugins of xmake.", options = { {'i', "install", "k", nil, "Install plugins."}, - {'u', "update", "k", nil, "Update plugins."}, + {'r', "remove", "k", nil, "Remove the given installed plugin."}, + {'l', "list", "k", nil, "List all installed plugins."}, {'c', "clear", "k", nil, "Clear all installed plugins."}, - {nil, "plugins", "v", nil, "The plugins path or url.", + {nil, "plugins", "vs", nil, "The plugin paths, urls or names.", "e.g.", - " $ xmake plugin --install https://github.com/xmake-io/xmake-plugins", - " $ xmake plugin --update"} + " $ xmake plugin --install https://github.com/myrepo/hello", + " $ xmake plugin --install github:myrepo/hello", + " $ xmake plugin --install github:myrepo/hello#dev", + " $ xmake plugin --install /tmp/my-plugin", + " $ xmake plugin --install xmake-repo@hello", + " $ xmake plugin --install hello", + " $ xmake plugin --remove hello", + " $ xmake plugin --list"} } } |
