Hi,
First of all nice plugin!! Going through the code I’m wondering what is the purpose of the target argument in e.g. DevcontainerExec command when you have more than one argument. The reason I ask is that it took me a while to understand why DevcontainerExec cargo run was failing.
Regards,
Reggie
On Wed Feb 7, 2024 at 5:15 PM CET, Reggie Cushing wrote:
> Hi,
> First of all nice plugin!! Going through the code I’m wondering what is the purpose of the target argument in e.g. DevcontainerExec command when you have more than one argument. The reason I ask is that it took me a while to understand why DevcontainerExec cargo run was failing.
Hi! Thank you!
It takes container as target. The default is "devcontainer", meaning the
container defined in `.devcontainer` file, but it can also take "latest"
to executo on latest used container and it can also take any other
container (and it can be autocompleted to see the whole list). In your
case, `DevcontainerExec devcontainer cargo run` should have worked.
I understand this is a bit weird to use. If you have suggestions on how
the command could look like (maybe like a `--target` option), I would
gladly make it a bit better.
> Regards,
> Reggie
--
Ensar Sarajčić
w: www.ensarsarajcic.com