summaryrefslogtreecommitdiff
path: root/xmake/plugins/service/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-04-05 00:42:04 +0800
committerruki <[email protected]>2022-04-05 00:42:04 +0800
commitea532e409179feadb227148a67fd4b22c889cea6 (patch)
tree91b91e5307f98ea9c8e79e025e47c11ce2d06c15 /xmake/plugins/service/xmake.lua
parent4679c558ab35d246c177ed77028f776ecc8373d2 (diff)
add remote build server stub
Diffstat (limited to 'xmake/plugins/service/xmake.lua')
-rw-r--r--xmake/plugins/service/xmake.lua29
1 files changed, 9 insertions, 20 deletions
diff --git a/xmake/plugins/service/xmake.lua b/xmake/plugins/service/xmake.lua
index ec163ad61..024eca0d6 100644
--- a/xmake/plugins/service/xmake.lua
+++ b/xmake/plugins/service/xmake.lua
@@ -18,27 +18,16 @@
-- @file service.lua
--
--- define task
task("service")
-
- -- set category
set_category("plugin")
-
- -- on run
on_run("main")
- -- set menu
- set_menu {
- -- usage
- usage = "xmake service [options]"
-
- -- description
- , description = "Start service for remote or distributed compilation and etc. ${color.warning}(Experimental, still in development)"
-
- -- options
- , options =
- {
- {'d', "daemon", "k", nil, "Run service as daemon." }
- , {nil, "status", "k", nil, "Show service status if the daemon service has been started." }
- }
- }
+ set_menu {usage = "xmake service [options]",
+ description = "Start service for remote or distributed compilation and etc. ${color.warning}(Experimental, still in development)",
+ options = {
+ {nil, "start", "k", nil, "Start daemon service." },
+ {nil, "restart", "k", nil, "Restart daemon service." },
+ {nil, "stop" , "k", nil, "Stop daemon service." },
+ {nil, "logs", "k", nil, "Show service logs if the daemon service has been started." },
+ {nil, "status", "k", nil, "Show service status if the daemon service has been started." }
+ }}