diff options
| author | ruki <[email protected]> | 2022-06-09 00:47:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-06-09 00:47:19 +0800 |
| commit | 8f7341f1008150052fc67d0d7f99a65342c46839 (patch) | |
| tree | 012422bc881d0a2044e616b54fe09a374c2daa3a /xmake/plugins/plugin/xmake.lua | |
| parent | 4be1fbbe32ebfb3cf50a4636762552bb59dee754 (diff) | |
improve plugins manager
Diffstat (limited to 'xmake/plugins/plugin/xmake.lua')
| -rw-r--r-- | xmake/plugins/plugin/xmake.lua | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/xmake/plugins/plugin/xmake.lua b/xmake/plugins/plugin/xmake.lua index 6089a4f24..97e18fc0b 100644 --- a/xmake/plugins/plugin/xmake.lua +++ b/xmake/plugins/plugin/xmake.lua @@ -18,28 +18,19 @@ -- @file plugin.lua -- --- define task task("plugin") - - -- set category set_category("plugin") - - -- on run on_run("main") - - -- set menu set_menu { - - -- usage - usage = "xmake plugin [options]" - - -- description - , description = "Manage plugins of xmake." - - -- options - , options = - { - {'i', "install", "k", nil, "Install all plugins of the official remote repository." } - , {'c', "clear", "k", nil, "Clear all installed plugins." } + usage = "xmake plugin [options]", + description = "Manage plugins of xmake.", + options = { + {'i', "install", "k", nil, "Install plugins." }, + {'u', "update", "k", nil, "Update plugins." }, + {'c', "clear", "k", nil, "Clear all installed plugins." }, + {nil, "plugins", "v", nil, "The plugins path or url.", + "e.g.", + " $ xmake plugin --install https://github.com/xmake-io/xmake-plugins", + " $ xmake plugin --update"} } } |
