mirror of
https://git.ari.lt/ari.lt/ari.lt.git
synced 2025-02-05 01:59:25 +01:00
101 lines
2.2 KiB
JavaScript
101 lines
2.2 KiB
JavaScript
var commands = {
|
|
"clear": {
|
|
"func": clear,
|
|
"root_only": false,
|
|
"help": {
|
|
"desc": "A command to clear the screen",
|
|
"short_desc": "Clear the screen",
|
|
"examples": [
|
|
"clear"
|
|
]
|
|
}
|
|
},
|
|
|
|
"reboot": {
|
|
"func": reboot,
|
|
"root_only": true,
|
|
"help": {
|
|
"desc": "A command to reboot",
|
|
"short_desc": "Reboot",
|
|
"examples": [
|
|
"reboot"
|
|
]
|
|
}
|
|
},
|
|
|
|
"help": {
|
|
"func": help,
|
|
"root_only": false,
|
|
"help": {
|
|
"desc": "A command to print help",
|
|
"short_desc": "Print help",
|
|
"examples": [
|
|
"help",
|
|
"help help"
|
|
]
|
|
}
|
|
},
|
|
|
|
"show": {
|
|
"func": show,
|
|
"root_only": false,
|
|
"help": {
|
|
"desc": "A command to show pages",
|
|
"short_desc": "Show page",
|
|
"examples": [
|
|
"show src",
|
|
"show"
|
|
]
|
|
}
|
|
},
|
|
|
|
"goto": {
|
|
"func": goto,
|
|
"root_only": false,
|
|
"help": {
|
|
"desc": "A command to go to pages",
|
|
"short_desc": "Goto a page via an alias",
|
|
"examples": [
|
|
"goto src",
|
|
"goto"
|
|
]
|
|
}
|
|
},
|
|
|
|
"ls": {
|
|
"func": list,
|
|
"root_only": false,
|
|
"help": {
|
|
"desc": "A command to list available pages",
|
|
"short_desc": "List pages",
|
|
"examples": [
|
|
"ls"
|
|
]
|
|
}
|
|
},
|
|
|
|
"su": {
|
|
"func": su,
|
|
"root_only": false,
|
|
"help": {
|
|
"desc": "A command to run commands as <b>root</b>, use 'su .' to switch between the users.",
|
|
"short_desc": "Run as root",
|
|
"examples": [
|
|
"su .",
|
|
"su reboot"
|
|
]
|
|
}
|
|
},
|
|
|
|
"passwd": {
|
|
"func": passwd,
|
|
"root_only": true,
|
|
"help": {
|
|
"desc": "A command to change your password",
|
|
"short_desc": "Change password",
|
|
"examples": [
|
|
"passwd"
|
|
]
|
|
}
|
|
},
|
|
}
|