-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexecutor.py
More file actions
40 lines (39 loc) · 987 Bytes
/
executor.py
File metadata and controls
40 lines (39 loc) · 987 Bytes
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
import func
import fs
import pfetch
import mop
def run_command(command, args):
if command == "quit":
func.quit()
elif command == "clear":
func.clear()
elif command == "help":
func.help()
elif command == "whoami":
func.whoami()
elif command == "yes":
func.yes(args)
elif command == "echo":
func.echo(args)
elif command == "calc":
func.calculator()
elif command == "ls":
fs.list_files()
elif command == "rm":
fs.remove_file(args)
elif command == "cd":
fs.change_dir(args)
elif command == "mkdir":
fs.make_dir(args)
elif command == "pfetch":
pfetch.fetch()
elif command == "pwd":
func.pwd()
elif command == "useradd":
func.useradd(args)
elif command == "run":
fs.run_python(args)
elif command == "mop":
mop.install(args)
else:
print(f"неизвестная команда {command}")