feat: new code structure

This commit is contained in:
GenZmeY 2020-08-07 11:31:52 +03:00
parent 71515a39ce
commit f37bcf810c
25 changed files with 75 additions and 200 deletions

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
echo "<id>..."
}
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

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
echo "<id>..."
}
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

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
echo "[<instance>...]"
}
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
echo "[<args>...]"
}
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
echo "<name>..."
}
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
echo "<message> [<instance>...]"
}
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
echo "[<instance>...]"
}
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
echo "[<instance>...]"
}
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
echo "[<instance>...]"
}
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
echo "[<instance>...]"
}
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
echo "[<instance>...]"
}
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
echo "[<instance>...]"
}
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
echo "[<instance>...]"
}
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
echo "[<instance>...]"
}
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]

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
echo "[<instance>...]"
}
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]

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
echo "<password> [<instance>...]"
}
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
echo "<password> [<instance>...]"
}
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
echo "[<workshop_id>...]"
}
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
echo "[<workshop_id>...]"
}
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
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 ()

View File

@ -21,22 +21,17 @@
function cmd_usage ()
{
# How use it
# example:
# echo "[-h] <arg1> <arg2>"
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 ()