Skip to content
Extraits de code Groupes Projets
Valider 57df2f09 rédigé par LaplongeJunior's avatar LaplongeJunior
Parcourir les fichiers

Added virtual sheel structure

parent f9fbbfb7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
"#import utils.inc.src"
imports.vshell = {}
imports.vshell.EXIT = "exit"
imports.vshell.constrs = {}
imports.vshell.constrs.shell = function(object)
result = {}
result.heart = object
result.start_terminal = function (object)
while true
print("Please enter a command:"+char(10))
command = user_prompt()
if command == imports.vshell.EXIT then break
imports.vshell.cmds[command](self)
end while
end function
return result
end function
imports.vshell.init = function(object)
type = typeof(object)
if type != "computer" and type != "file" and type != "shell" then return null
return imports.vshell.constrs.shell(object)
end function
imports.vshell.run = function(object)
imports.vshell.init(object).start_terminal()
end function
imports.vshell.cmds = {}
imports.vshell.cmds.help = function(shell)
names = ["exit"]
for name in imports.vshell.cmds.values
names.put(name)
end for
return names
end function
imports.vshell.cmds.cd = function(shell)
end function
imports.vshell.cmds.read = function(shell)
end function
imports.vshell.cmds.get = function(shell)
end function
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter