feat: new code structure

This commit is contained in:
GenZmeY 2020-08-07 11:31:52 +03:00
parent 5cc1a53f08
commit 36f1d5514d
25 changed files with 75 additions and 200 deletions

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo "<id>..."
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Add the specified user(s) to the blocklist"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () # $*: ban list function cmd_main () # $*: ban list

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo "<id>..."
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "remove the specified user(s) from the blocklist"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () # $*: ban list function cmd_main () # $*: ban list

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo ""
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Show the list of blocked users"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo ""
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Sync blocklist for all servers"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo "[<instance>...]"
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Correct ini files permissions for the specified instance"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo "[<args>...]"
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Start the server with the specified parameters"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo ""
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Install or update the server"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo ""
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Check the integrity of files, update them if necessary"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo "<name>..."
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Create a new server instance(s) with the specified name(s)"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo "<message> [<instance>...]"
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Send message to specified server instances"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo "[<instance>...]"
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Delete the specified server instances"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo "[<instance>...]"
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Disable specified server instance(s)"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo "[<instance>...]"
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Enable specified server instance(s)"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo "[<instance>...]"
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Show status of the specified server instance(s)"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo "[<instance>...]"
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Restart the specified server instance(s)"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo "[<instance>...]"
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Start the specified server instance(s)"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo "[<instance>...]"
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Stop the specified server instance(s)"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo "[<instance>...]"
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Load map rotation for specified server instance(s)"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () # $*: Instance[s] function cmd_main () # $*: Instance[s]

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo "[<instance>...]"
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Save map rotation for specified server instance(s)"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () # $*: Instance[s] function cmd_main () # $*: Instance[s]

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo "<password> [<instance>...]"
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Set a admin password for the specified server instance(s)"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo "<password> [<instance>...]"
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Set a game password for the specified server instance(s)"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo "[<workshop_id>...]"
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Add specified resource(s) from steam workshop"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo "[<workshop_id>...]"
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Delete specified steam workshop resource(s)"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo ""
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Show the list of steam workshop resources"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()

View File

@ -21,22 +21,17 @@
function cmd_usage () function cmd_usage ()
{ {
# How use it echo ""
# example:
# echo "[-h] <arg1> <arg2>"
} }
function cmd_info () function cmd_info ()
{ {
# What this command do (briefly) echo "Sync steamorkshop resources between all server instances"
# You can use multiple lines, but one is better
# Example:
# echo "Create new instance"
} }
function cmd_help () function cmd_help ()
{ {
# Full help on command usage echo "TODO: description"
} }
function cmd_main () function cmd_main ()