Skip to content

Commit

Permalink
feat(run): Allow application args overriding from CLI (#1694)
Browse files Browse the repository at this point in the history
Reviewed-by: Cezar Craciunoiu <[email protected]>
Approved-by: Alexander Jung <[email protected]>
  • Loading branch information
nderjung authored Feb 4, 2025
2 parents 0250bee + 8272b3a commit 8ddb509
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/cli/kraft/run/runner_kraftfile_runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,9 @@ func (runner *runnerKraftfileRuntime) Prepare(ctx context.Context, opts *RunOpti
}
}

if len(runner.project.Command()) > 0 {
if len(runner.args) > 0 {
machine.Spec.ApplicationArgs = runner.args
} else if len(runner.project.Command()) > 0 {
machine.Spec.ApplicationArgs = runner.project.Command()
} else if len(runtime.Command()) > 0 {
machine.Spec.ApplicationArgs = runtime.Command()
Expand Down

0 comments on commit 8ddb509

Please sign in to comment.