26 lines
316 B
GDScript3
26 lines
316 B
GDScript3
|
#!/usr/bin/env -S godot --headless -s
|
||
|
extends SceneTree
|
||
|
|
||
|
var cmd := CMD.new()
|
||
|
|
||
|
func _init():
|
||
|
for command in ["list", "stop", "start", "current"]:
|
||
|
if cmd.has_argument(command):
|
||
|
call(command)
|
||
|
|
||
|
|
||
|
func list() -> void:
|
||
|
pass
|
||
|
|
||
|
|
||
|
func stop() -> void:
|
||
|
pass
|
||
|
|
||
|
|
||
|
func start() -> void:
|
||
|
pass
|
||
|
|
||
|
|
||
|
func current() -> void:
|
||
|
pass
|