diff options
| author | ruki <[email protected]> | 2022-04-12 22:41:15 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-04-12 22:41:15 +0800 |
| commit | 1ef23a02096321059a14afd8b6bc38eeb3b3d282 (patch) | |
| tree | 8bb1c46f0ebbad9858d4fa659d69035f639575a8 /xmake/plugins | |
| parent | 8f1db2b9b2df2b7223fb2878a1dc7d8cf7b1adfd (diff) | |
clean files in server
Diffstat (limited to 'xmake/plugins')
| -rw-r--r-- | xmake/plugins/service/main.lua | 3 | ||||
| -rw-r--r-- | xmake/plugins/service/xmake.lua | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/xmake/plugins/service/main.lua b/xmake/plugins/service/main.lua index 660903412..82c7cd7b8 100644 --- a/xmake/plugins/service/main.lua +++ b/xmake/plugins/service/main.lua @@ -27,6 +27,7 @@ import("private.service.stop_service") import("private.service.connect_service") import("private.service.reconnect_service") import("private.service.disconnect_service") +import("private.service.clean_files") import("private.service.import_config") import("private.service.show_logs") import("private.service.show_status") @@ -46,6 +47,8 @@ function main() reconnect_service() elseif option.get("disconnect") then disconnect_service() + elseif option.get("clean") then + clean_files() elseif option.get("config") then import_config() elseif option.get("logs") then diff --git a/xmake/plugins/service/xmake.lua b/xmake/plugins/service/xmake.lua index b819c7157..0cd101972 100644 --- a/xmake/plugins/service/xmake.lua +++ b/xmake/plugins/service/xmake.lua @@ -28,9 +28,10 @@ task("service") {nil, "start", "k", nil, "Start daemon service." }, {nil, "restart", "k", nil, "Restart daemon service." }, {nil, "stop" , "k", nil, "Stop daemon service." }, - {nil, "connect" , "k", nil, "Connect the remote daemon service." }, - {nil, "reconnect", "k", nil, "Reconnect the remote daemon service." }, - {nil, "disconnect", "k", nil, "Disconnect the remote daemon service." }, + {nil, "connect" , "k", nil, "Connect current project to the remote daemon service." }, + {nil, "reconnect", "k", nil, "Reconnect current project to the remote daemon service." }, + {nil, "disconnect", "k", nil, "Disconnect current project in the remote daemon service." }, + {nil, "clean", "k", nil, "Clean current project files in the remote daemon service." }, {nil, "config", "kv", nil, "Import the configuration file. (default: ~/.xmake/service.conf)", "e.g.", " - xmake service --config=/tmp/config.lua" }, |
