You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pipelines: Add auto-selection for single pipeline in pipelines run and dry-run commands (#3243)
### **Changes**
Enhanced `pipelines run` and `dry-run` commands to automatically select
a pipeline when only one pipeline exists in the bundle and no arguments
are specified.
**Key changes in `cmd/pipelines/utils.go`:**
- Modified `resolveRunArgument` function to auto-select pipeline when
`len(args) == 0` and only one runnable resource (pipeline) exists
- Maintains existing behavior for multiple resources (prompts for
selection) and explicit arguments
- Based on existing `resolveRunArgument` from `cmd/bundle/run.go` but
tailored for pipeline workflows
### **Tests**
Tests added to auto-select the single pipeline in the resources file in
the tests
Kept tests to still run both with and without specifying KEY (with and
without auto-selection)
Follow-up for pipeline open auto-selection: #3258
0 commit comments