Skip to content

Conversation

@ivannalisetska
Copy link
Contributor

  • Add PickOneWithNoInput() function to accept noInput parameter
  • Add PickOneWithFactory() function that uses factory's NoInput flag
  • Update all 11 command files to use the function
  • Add safety check to prevent panic when pipeline not found
  • Fixes issue where pipeline picker ignored --no-input flag

all tests related to this fix passed :

internal/pipeline/resolver — PASS
internal/io — PASS
cmd/build — PASS

- Add PickOneWithNoInput() function to accept noInput parameter
- Add PickOneWithFactory() function that uses factory's NoInput flag
- Update all 11 command files to use PickOneWithFactory(f)
- Add safety check to prevent panic when pipeline not found
- Fixes issue where pipeline picker ignored --no-input flag
- Makes CLI automation-friendly and CI/CD ready

PBI: #SUP-5609
@ivannalisetska ivannalisetska requested a review from a team as a code owner December 16, 2025 19:51
@mcncl
Copy link
Contributor

mcncl commented Dec 16, 2025

Investigating a little, we should probably opt to keep use of mattn's library.

@ivannalisetska
Copy link
Contributor Author

@mcncl I reverted prompt.go to mattn/go-isatty to match the existing codebase

- Resolve conflicts in internal/io/prompt.go
- Update cmd/pipeline/copy.go to use PickOneWithFactory
- Keep TTY detection using mattn/go-isatty for consistency
We don't use this file anymore
@mcncl mcncl merged commit 0147677 into main Dec 16, 2025
1 check passed
@mcncl mcncl deleted the ivannalisetska/SUP-5609 branch December 16, 2025 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants