[Gambas-user] Execute script from ide
benoit.minisini at gambas-basic.org
Wed Sep 20 15:52:11 CEST 2023
Le 20/09/2023 à 09:36, Marco Ancillotti a écrit :
> Hi all ,
> I usually have some script on a project because I use that to make some
> internal processing or to load the binary to the
> right server.
> When I right click on that from the ide I see the usual stuff ( open ,
> open with , duplicate , ... ) .
> Is possible to add a menu item to run the script on a window ?
> It will speed up my works a lot since I write script directly from the
> ide and every time I need to run one I need to go to tools ,
> open terminal , run script by hand and then close the terminal.
> I think we need simply to check if file have execute permission and
> launch it the default terminal app.
> Thanks in advance,
It should be possible to do that.
By the way, I'm thinking about a feature related to that problem
(running commands to manage a project).
I imagine some "Gambas project configuration files" located in the
parent directories of a project.
These configuration files will be able to:
- Define some variables.
- Define some visual things for the IDE, to help make the difference
- Run some shell commands in some context (before/after having compiled
the project, making the executable, and so on...).
- Associate a command with a new menu entry in the IDE, in some
- ... (add your own ideas here).
This sort of "meta" configuration file will allow to define the way you
manage one project, or a group of projects. Especially how to deploy it
for example. And so automatically, and once. No need to manually run
anything each time you make the executable.
I see one problem: if you share your project, you don't share the meta
configuration files, and so the project may be incomplete (depending of
what the commands really do).
What do people think about that?
More information about the User