oh-my-git/scenes/shell_command.gd
2023-09-07 11:43:51 +02:00

22 lines
395 B
GDScript

extends Node
class_name ShellCommand
signal done
var command
var output
var exit_code
var crash_on_fail = true
var thread
var js_callback # For JavaScriptBridge
func _unused():
# This is just to suppress a warning about the signal never being emitted.
emit_signal("done")
func callback(_output):
#print(_output)
print(_output[0])
output = _output[0]
exit_code = 0
emit_signal("done")