Add command-line interface#109
Open
bruce965 wants to merge 1 commit into
Open
Conversation
bruce965
commented
Mar 29, 2026
| add_autoload_singleton(AUTOLOAD_NAME, AUTOLOAD_PATH) | ||
| while get_editor_interface().get_resource_filesystem().is_scanning(): | ||
| print_log("Waiting for auto scan to finish") | ||
| await get_tree().process_frame |
Author
There was a problem hiding this comment.
This was necessary to prevent the process from hanging. I assume that's because when running from the command-line it runs in single-thread mode.
bruce965
commented
Mar 29, 2026
Collaborator
|
i'm almost raedy to release the V2 version of the plugin. after that i will look if this is still compatible. |
Collaborator
|
i merged my v2 changes into main, so this has now merge conflicts. can you update the PR and check that it still works as expected? |
Author
|
@xDovos it seems to still be working. I removed my logging adapter since you already made it flexible enough with your refactoring, but I still had to add a boolean flag to force directing logs to the CLI. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi 🙋♂️
This change allows codegen from the command-line with this command:
The output looks something like the following:
Feel free to merge if you think this could be useful. Also, I noticed you are currently refactoring, let me know if you need me to have a look again once that's done.
Thank you and wish you a good day!