diff options
| author | ruki <[email protected]> | 2022-04-12 22:42:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-04-12 22:42:25 +0800 |
| commit | 314c329ed33997af84bb0971965a15f3cc7cdbb4 (patch) | |
| tree | 8361481eeab3d019b27cc1083196cb285f2dfa33 /xmake/plugins/service | |
| parent | 1ef23a02096321059a14afd8b6bc38eeb3b3d282 (diff) | |
improve sync
Diffstat (limited to 'xmake/plugins/service')
| -rw-r--r-- | xmake/plugins/service/main.lua | 3 | ||||
| -rw-r--r-- | xmake/plugins/service/xmake.lua | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/xmake/plugins/service/main.lua b/xmake/plugins/service/main.lua index 82c7cd7b8..355b43b41 100644 --- a/xmake/plugins/service/main.lua +++ b/xmake/plugins/service/main.lua @@ -28,6 +28,7 @@ import("private.service.connect_service") import("private.service.reconnect_service") import("private.service.disconnect_service") import("private.service.clean_files") +import("private.service.sync_files") import("private.service.import_config") import("private.service.show_logs") import("private.service.show_status") @@ -49,6 +50,8 @@ function main() disconnect_service() elseif option.get("clean") then clean_files() + elseif option.get("sync") then + sync_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 0cd101972..f45e2a0f8 100644 --- a/xmake/plugins/service/xmake.lua +++ b/xmake/plugins/service/xmake.lua @@ -31,6 +31,7 @@ task("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, "sync", "k", nil, "Sync current project files 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.", |
