Implemented basic "ps" and "env" commands.

This commit is contained in:
Jakob Friedl
2025-08-01 13:16:12 +02:00
parent 0d54b3e64b
commit dfcafa9c24
7 changed files with 161 additions and 5 deletions

View File

@@ -5,7 +5,8 @@ import ../common/[types, utils]
import
shell,
sleep,
filesystem
filesystem,
environment
type
ModuleManager* = object
@@ -24,6 +25,7 @@ proc loadModules*() =
registerCommands(shell.commands)
registerCommands(sleep.commands)
registerCommands(filesystem.commands)
registerCommands(environment.commands)
proc getCommandByType*(cmdType: CommandType): Command =
return manager.commandsByType[cmdType]