Closed sourishkrout closed 4 weeks ago
Good point! It was done in the following way in runnerv1: https://github.com/stateful/runme/blob/56a77e8cde086ed1be7e118bc555b173d6543f5f/internal/runner/command.go#L660-L672
Good point! It was done in the following way in runnerv1:
That works but also open to alternatives if you have something else in mind 👍.
@sourishkrout to confirm the use case, does deno run
come from the client in runme.runner.v2alpha1.ProgramConfig.program_name
?
@sourishkrout to confirm the use case, does
deno run
come from the client inrunme.runner.v2alpha1.ProgramConfig.program_name
?
Just saw this now... Yes, I believe that's what's being set plus the CommandMode=File
.
Instead of looking up
deno run
it should attempt a look up againstdeno
and prependrun
to the args stack.https://github.com/stateful/runme/blob/main/internal/command/command.go#L102-L116
This works in runner v1. Let's be sure to add a test case.