Skip to content

Accept piping via stdin#656

Merged
mcncl merged 1 commit intomainfrom
feat/convert_stdin
Feb 20, 2026
Merged

Accept piping via stdin#656
mcncl merged 1 commit intomainfrom
feat/convert_stdin

Conversation

@mcncl
Copy link
Contributor

@mcncl mcncl commented Feb 19, 2026

Description

We can expand the pipeline conversion to support piping from standard in;

cat ci.yml | bk pipeline convert --vendor github

Changes

  • allows users to pipe to the CLI via tools like cat using our HasDataAvailable method
  • makes --file optional due to stdin support
  • pipes back to stdout (unless --output/-o specified)

Testing

  • Tests have run locally (with go test ./...)
  • Code is formatted (with go fmt ./...)

We can expand the pipeline conversion to support piping from standard in; 

```sh
cat ci.yml | bk pipeline convert --vendor github
```
@mcncl mcncl requested a review from a team as a code owner February 19, 2026 05:38
@mcncl mcncl merged commit 21beb93 into main Feb 20, 2026
1 check passed
@mcncl mcncl deleted the feat/convert_stdin branch February 20, 2026 01:21
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.

2 participants