-
-
Notifications
You must be signed in to change notification settings - Fork 549
Accept and run commands from argv. #1078
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Wow, I like it. We could develop your idea further and add such behavior for all the export commands which used UI file save dialog, so you could export music from a cart, for example, without opening TIC's console. Please, continue. |
This is great! I would love to see the external command line interface improve a lot more. Keep it up 👍 Quick question.... Could we do something like this?
|
@RobLoach do you mean specifically that it should interpret any arguments after the already-recognized commands as if they were entered in the console? I think that makes sense if @nesbox agrees. Running commands is pretty easy to implement; changing the |
I think I have this working now just for the part where it accepts args from argv. Allowing the |
This allows things like "new fennel" or "export html" to work.
@nesbox I think this one is ready to go; thanks. |
Ok, thank you :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls update the wiki if not difficult
thank you 👍
Sure thing; thanks! |
I was thinking it might be nice to be able to export to HTML from my makefile. I have two commits here to make that happen; the first one makes it so the CLI accepts a
-command foo
flag which gets run as a console command, and then exits. As far as I can tell this works. The second commit attempts to make it so that the console commandexport html foo.zip
will use "foo.zip" as its output filename instead of popping up a system save dialog box. This part does not work yet.Anyway, if you think this is a good idea I can continue to work on this and get the problems ironed out, but if you think this complicates things too much that is fine too; I wanted to ask your opinion before I spent much more time on it.
Thanks!