Are there any plans of making a "run" command? (As in "gb run"?) #51
Comments
The short answer is no, I don't plan on adding a The longer answer is: One of my frustrations with the While I recognise the utility of Because The workaround is, you could write |
I'm going off on a bit of a tangent, but thinking about what I (personally) really want from So, instead of doing:
I'd rather do something like:
(Note I switched Seems like a very easy plugin to write. Although the plugin would have to consider if I'm deep into the {PROJECT}/src directory. (I.e., it might not be as simple as running "./bin/main". Could be "../../../../bin/main".) Or if the compiled binary is named something other than "main". (I.e., could be something like "./bin/apple-banana-cherry".) |
To add to davecheney's complaint, there are two issues with |
@reiver the environment gb plugins run in has access to some environment variables set up for it. Well, to be honest, there is just one
But that should be sufficient for what you need to write The first is that gb projects are not limited to a single executable, there can be many. So there is no direct correlation between building and running; building may produce many executables, which one to run ? I think your workflow is important, and I want to do what I can to make it convenient to use gb, so I'll throw out another suggestion. From the project root, you can build and run with
Maybe that is sufficient |
Explaining the duality between |
Yes, I saw that in the docs! I like it. |
Continuing the conversation from Twitter:
The
go
command has bothgo build
andgo run
.The
gb
command currently only hasgb build
but notgb run
Are there any plans of making a
run
command, as ingb run
?The text was updated successfully, but these errors were encountered: