summaryrefslogtreecommitdiffstats
path: root/src/commands/module-loadex.json
blob: 6c750ea7f7f008b0b510a84bc02b277b663d9a65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
    "LOADEX": {
        "summary": "Loads a module using extended parameters.",
        "complexity": "O(1)",
        "group": "server",
        "since": "7.0.0",
        "arity": -3,
        "container": "MODULE",
        "function": "moduleCommand",
        "command_flags": [
            "NO_ASYNC_LOADING",
            "ADMIN",
            "NOSCRIPT",
            "PROTECTED"
        ],
        "reply_schema": {
            "const": "OK"
        },
        "arguments": [
            {
                "name": "path",
                "type": "string"
            },
            {
                "name": "configs",
                "token": "CONFIG",
                "type": "block",
                "multiple": true,
                "multiple_token": true,
                "optional": true,
                "arguments": [
                    {
                        "name": "name",
                        "type": "string"
                    },
                    {
                        "name": "value",
                        "type": "string"
                    }
                ]
            },
            {
                "name": "args",
                "token": "ARGS",
                "type": "string",
                "multiple": true,
                "optional": true
            }
        ]
    }
}