forked from trinitrix/core
1
0
Fork 0

Docs(Commands): Documented the command system

This commit is contained in:
antifallobst 2023-07-10 23:36:54 +02:00
parent a30229b763
commit 05d4b4d097
Signed by: antifallobst
GPG Key ID: 2B4F402172791BAF
3 changed files with 23 additions and 0 deletions

7
docs/CommandLine.md Normal file
View File

@ -0,0 +1,7 @@
# Command Line
Trinitrix has a command line, which you can use to control and navigate the app.
You can activate it with the `CommandLineShow` command, which is mapped to `<Ctrl>+c` by default.
## Syntax (LUA)
The command line uses [lua](https://www.lua.org/about.html) and provides a builtin function for every internal command.
The function names are the snake case variants of the command names.

13
docs/Commands.md Normal file
View File

@ -0,0 +1,13 @@
# Commands
Trinitrix relies heavily on the concept of commands.
There is a command for every interaction with the application.
By this, everything can use the same internal API, what makes the whole application extreme extensible and customizable.
## Available Commands
| Command | Description |
|-----------------|-------------------------------------------------------------------------------|
| Exit | Terminates the whole application. |
| CommandLineShow | Shows the command line. |
| CommandLineHide | Hides the command line. |
| RoomMessageSend | Sends the message, which is passed as argument, to the currently active room. |

3
docs/Config.md Normal file
View File

@ -0,0 +1,3 @@
# Config
To configure trinitrix, you can add a file named `config.lua` to the userdata path.
This file will be interpreted on startup with the same syntax as the Command Line.