diff options
| author | ruki <[email protected]> | 2022-05-11 23:40:42 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-11 23:40:42 +0800 |
| commit | f71c3c201202e88126a79cb95e9a050cd8f980da (patch) | |
| tree | 2016688bee9f778fcb88767835ddb7f7257d0994 | |
| parent | fc4f86e88a8fa170b3783ff82c57549ff6dcb210 (diff) | |
add service kind
| -rw-r--r-- | xmake/actions/service/xmake.lua | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/xmake/actions/service/xmake.lua b/xmake/actions/service/xmake.lua index ad5689048..a6787dd5a 100644 --- a/xmake/actions/service/xmake.lua +++ b/xmake/actions/service/xmake.lua @@ -25,12 +25,26 @@ task("service") set_menu {usage = "xmake service [options]", description = "Start service for remote or distributed compilation and etc.", options = { - {nil, "start", "k", nil, "Start daemon service." }, + {nil, "start", "k", nil, "Start daemon service.", + "e.g.", + " - xmake service --start", + " - xmake service --start -k remote", + " - xmake service --start -k distributed" }, {nil, "restart", "k", nil, "Restart daemon service." }, {nil, "stop" , "k", nil, "Stop daemon service." }, - {nil, "connect" , "k", nil, "Connect current project to the remote daemon service." }, + {nil, "connect" , "k", nil, "Connect current project to the remote daemon service.", + "e.g.", + " - xmake service --connect", + " - xmake service --connect -k remote", + " - xmake service --connect -k distributed" }, {nil, "reconnect", "k", nil, "Reconnect current project to the remote daemon service." }, {nil, "disconnect", "k", nil, "Disconnect current project in the remote daemon service." }, + {"k", "kind", "kv", "remote", + "Set the started and connected service kind.", + "e.g.", + " - xmake service -k [remote|distributed]", + " - xmake service --start -k [remote|distributed]", + " - xmake service --connect -k [remote|distributed]" }, {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)", |
