From f37bcf810cfe511ac424f9f85ffbdd15a352cd8f Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Fri, 7 Aug 2020 11:31:52 +0300 Subject: [PATCH] feat: new code structure --- SOURCES/main/cmdgrp/ban/add | 11 +++-------- SOURCES/main/cmdgrp/ban/delete | 11 +++-------- SOURCES/main/cmdgrp/ban/list | 11 +++-------- SOURCES/main/cmdgrp/ban/sync | 11 +++-------- SOURCES/main/cmdgrp/game/fix-permissions | 11 +++-------- SOURCES/main/cmdgrp/game/run | 11 +++-------- SOURCES/main/cmdgrp/game/update | 11 +++-------- SOURCES/main/cmdgrp/game/validate | 11 +++-------- SOURCES/main/cmdgrp/instance/add | 11 +++-------- SOURCES/main/cmdgrp/instance/chat | 11 +++-------- SOURCES/main/cmdgrp/instance/delete | 11 +++-------- SOURCES/main/cmdgrp/instance/disable | 11 +++-------- SOURCES/main/cmdgrp/instance/enable | 11 +++-------- SOURCES/main/cmdgrp/instance/list | 11 +++-------- SOURCES/main/cmdgrp/instance/restart | 11 +++-------- SOURCES/main/cmdgrp/instance/start | 11 +++-------- SOURCES/main/cmdgrp/instance/stop | 11 +++-------- SOURCES/main/cmdgrp/maprotate/load | 11 +++-------- SOURCES/main/cmdgrp/maprotate/save | 11 +++-------- SOURCES/main/cmdgrp/password/admin | 11 +++-------- SOURCES/main/cmdgrp/password/game | 11 +++-------- SOURCES/main/cmdgrp/workshop/add | 11 +++-------- SOURCES/main/cmdgrp/workshop/delete | 11 +++-------- SOURCES/main/cmdgrp/workshop/list | 11 +++-------- SOURCES/main/cmdgrp/workshop/sync | 11 +++-------- 25 files changed, 75 insertions(+), 200 deletions(-) diff --git a/SOURCES/main/cmdgrp/ban/add b/SOURCES/main/cmdgrp/ban/add index 51783a2..c27421c 100644 --- a/SOURCES/main/cmdgrp/ban/add +++ b/SOURCES/main/cmdgrp/ban/add @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "..." } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Add the specified user(s) to the blocklist" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () # $*: ban list diff --git a/SOURCES/main/cmdgrp/ban/delete b/SOURCES/main/cmdgrp/ban/delete index b64d866..fc0f76d 100644 --- a/SOURCES/main/cmdgrp/ban/delete +++ b/SOURCES/main/cmdgrp/ban/delete @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "..." } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "remove the specified user(s) from the blocklist" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () # $*: ban list diff --git a/SOURCES/main/cmdgrp/ban/list b/SOURCES/main/cmdgrp/ban/list index 395306e..3feb6df 100644 --- a/SOURCES/main/cmdgrp/ban/list +++ b/SOURCES/main/cmdgrp/ban/list @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Show the list of blocked users" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/ban/sync b/SOURCES/main/cmdgrp/ban/sync index 91684ff..69b3af9 100644 --- a/SOURCES/main/cmdgrp/ban/sync +++ b/SOURCES/main/cmdgrp/ban/sync @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Sync blocklist for all servers" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/game/fix-permissions b/SOURCES/main/cmdgrp/game/fix-permissions index 079bfea..739987a 100644 --- a/SOURCES/main/cmdgrp/game/fix-permissions +++ b/SOURCES/main/cmdgrp/game/fix-permissions @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "[...]" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Correct ini files permissions for the specified instance" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/game/run b/SOURCES/main/cmdgrp/game/run index 6f46725..0427413 100644 --- a/SOURCES/main/cmdgrp/game/run +++ b/SOURCES/main/cmdgrp/game/run @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "[...]" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Start the server with the specified parameters" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/game/update b/SOURCES/main/cmdgrp/game/update index 02cecfd..52ffa1c 100644 --- a/SOURCES/main/cmdgrp/game/update +++ b/SOURCES/main/cmdgrp/game/update @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Install or update the server" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/game/validate b/SOURCES/main/cmdgrp/game/validate index 84c9b30..06e164f 100644 --- a/SOURCES/main/cmdgrp/game/validate +++ b/SOURCES/main/cmdgrp/game/validate @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Check the integrity of files, update them if necessary" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/instance/add b/SOURCES/main/cmdgrp/instance/add index a704aa5..a9f1e33 100644 --- a/SOURCES/main/cmdgrp/instance/add +++ b/SOURCES/main/cmdgrp/instance/add @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "..." } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Create a new server instance(s) with the specified name(s)" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/instance/chat b/SOURCES/main/cmdgrp/instance/chat index b3e1557..14b355d 100644 --- a/SOURCES/main/cmdgrp/instance/chat +++ b/SOURCES/main/cmdgrp/instance/chat @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo " [...]" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Send message to specified server instances" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/instance/delete b/SOURCES/main/cmdgrp/instance/delete index 6cf10b6..c11a45c 100644 --- a/SOURCES/main/cmdgrp/instance/delete +++ b/SOURCES/main/cmdgrp/instance/delete @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "[...]" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Delete the specified server instances" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/instance/disable b/SOURCES/main/cmdgrp/instance/disable index 9d043bf..422457c 100644 --- a/SOURCES/main/cmdgrp/instance/disable +++ b/SOURCES/main/cmdgrp/instance/disable @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "[...]" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Disable specified server instance(s)" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/instance/enable b/SOURCES/main/cmdgrp/instance/enable index 8fb3058..6eca309 100644 --- a/SOURCES/main/cmdgrp/instance/enable +++ b/SOURCES/main/cmdgrp/instance/enable @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "[...]" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Enable specified server instance(s)" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/instance/list b/SOURCES/main/cmdgrp/instance/list index a30bff9..66f09ce 100644 --- a/SOURCES/main/cmdgrp/instance/list +++ b/SOURCES/main/cmdgrp/instance/list @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "[...]" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Show status of the specified server instance(s)" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/instance/restart b/SOURCES/main/cmdgrp/instance/restart index b62ef87..2411ca4 100644 --- a/SOURCES/main/cmdgrp/instance/restart +++ b/SOURCES/main/cmdgrp/instance/restart @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "[...]" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Restart the specified server instance(s)" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/instance/start b/SOURCES/main/cmdgrp/instance/start index 1b71bc0..909dadf 100644 --- a/SOURCES/main/cmdgrp/instance/start +++ b/SOURCES/main/cmdgrp/instance/start @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "[...]" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Start the specified server instance(s)" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/instance/stop b/SOURCES/main/cmdgrp/instance/stop index c16bc83..5ae0a35 100644 --- a/SOURCES/main/cmdgrp/instance/stop +++ b/SOURCES/main/cmdgrp/instance/stop @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "[...]" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Stop the specified server instance(s)" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/maprotate/load b/SOURCES/main/cmdgrp/maprotate/load index 08efecf..544d37e 100644 --- a/SOURCES/main/cmdgrp/maprotate/load +++ b/SOURCES/main/cmdgrp/maprotate/load @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "[...]" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Load map rotation for specified server instance(s)" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () # $*: Instance[s] diff --git a/SOURCES/main/cmdgrp/maprotate/save b/SOURCES/main/cmdgrp/maprotate/save index 2ca08ba..693314c 100644 --- a/SOURCES/main/cmdgrp/maprotate/save +++ b/SOURCES/main/cmdgrp/maprotate/save @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "[...]" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Save map rotation for specified server instance(s)" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () # $*: Instance[s] diff --git a/SOURCES/main/cmdgrp/password/admin b/SOURCES/main/cmdgrp/password/admin index a59d073..5474d31 100644 --- a/SOURCES/main/cmdgrp/password/admin +++ b/SOURCES/main/cmdgrp/password/admin @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo " [...]" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Set a admin password for the specified server instance(s)" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/password/game b/SOURCES/main/cmdgrp/password/game index 5ef7a59..109d2e0 100644 --- a/SOURCES/main/cmdgrp/password/game +++ b/SOURCES/main/cmdgrp/password/game @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo " [...]" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Set a game password for the specified server instance(s)" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/workshop/add b/SOURCES/main/cmdgrp/workshop/add index d61dd6b..06c23f4 100644 --- a/SOURCES/main/cmdgrp/workshop/add +++ b/SOURCES/main/cmdgrp/workshop/add @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "[...]" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Add specified resource(s) from steam workshop" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/workshop/delete b/SOURCES/main/cmdgrp/workshop/delete index e336425..de9d364 100644 --- a/SOURCES/main/cmdgrp/workshop/delete +++ b/SOURCES/main/cmdgrp/workshop/delete @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "[...]" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Delete specified steam workshop resource(s)" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/workshop/list b/SOURCES/main/cmdgrp/workshop/list index 04d07f5..dd3181e 100644 --- a/SOURCES/main/cmdgrp/workshop/list +++ b/SOURCES/main/cmdgrp/workshop/list @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Show the list of steam workshop resources" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main () diff --git a/SOURCES/main/cmdgrp/workshop/sync b/SOURCES/main/cmdgrp/workshop/sync index 1f9ef83..70df8da 100644 --- a/SOURCES/main/cmdgrp/workshop/sync +++ b/SOURCES/main/cmdgrp/workshop/sync @@ -21,22 +21,17 @@ function cmd_usage () { - # How use it - # example: - # echo "[-h] " + echo "" } function cmd_info () { - # What this command do (briefly) - # You can use multiple lines, but one is better - # Example: - # echo "Create new instance" + echo "Sync steamorkshop resources between all server instances" } function cmd_help () { - # Full help on command usage + echo "TODO: description" } function cmd_main ()