GDScript CLI wrapper
This project is a command-line wrapper for GDScript.
GDScript is the language used in Godot Game Engine (more info about Godot here).
Some of the Godot Engine users know that the editor has a cli command to execute scripts outside the project (
godot -s script.gd). So, what is the purpose of this project?
Actually the built-in command doesn't execute any kind of script because the script must inherits from
This limitation makes it very difficult to run simple scripts and other kind of scripts that need to inherit from another class.
So, this project is a tool to execute simple and complex scripts, direct from cli (one line or small block scripts) or from script files.
This tool is implemented using built-in script command (
godot -s). I have some points to reuse the built-in command instead of writing a GDScript parser:
I started this project using my spare time, so I'll take too long implementing a parser from scratch.
I'm not the best C++ developer (I'm the worst actually), so I'll take too long trying to reuse gdscript C++ module.
Since I don't have much time, my focus is on rapid implementation, not better (this doesn't mean the code is poorly written).
The built-in command works fine for now :)
The main goal is run GDScript through a web server. It will ease snippet tests, especially for new users.
The other goal is run GDScript easily from cli, no need to create a new project just to test a simple script (GDScript as general-purpose language intensifies).