This commit is contained in:
@@ -24,7 +24,7 @@ COMMANDS = {
|
|||||||
"rm [file]": "Remove a file",
|
"rm [file]": "Remove a file",
|
||||||
"tree [path]": "Display directory tree",
|
"tree [path]": "Display directory tree",
|
||||||
"touch [file]": "Create a new empty file",
|
"touch [file]": "Create a new empty file",
|
||||||
"nano [file]": "Edit a file (write content)",
|
"nano [file]": "Edit a file",
|
||||||
"reset": "Reset the terminal session",
|
"reset": "Reset the terminal session",
|
||||||
"exit": "Exit the terminal session",
|
"exit": "Exit the terminal session",
|
||||||
}
|
}
|
||||||
@@ -567,7 +567,6 @@ def tree():
|
|||||||
@terminal_bp.route("/terminal/execute/<command>", methods=["POST"])
|
@terminal_bp.route("/terminal/execute/<command>", methods=["POST"])
|
||||||
def execute_catch(command):
|
def execute_catch(command):
|
||||||
try:
|
try:
|
||||||
|
|
||||||
# Basic command processing
|
# Basic command processing
|
||||||
if command == "help":
|
if command == "help":
|
||||||
output = "Available commands:\n" + \
|
output = "Available commands:\n" + \
|
||||||
|
|||||||
Reference in New Issue
Block a user