Skip to content

cli : Support "-" for stdout like stdin #3050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danielzgtg
Copy link

This changes examples/cli/cli.cpp to be like examples/common-whisper.cpp. -of - can be specified (or this can be inferred from - as the input file) to output to stdout. This is useful for piping to other applications.

Closes #3048

@danielzgtg danielzgtg force-pushed the feat/fd branch 3 times, most recently from 892af7c to 755ccbb Compare April 15, 2025 00:31
This changes examples/cli/cli.cpp to be like
examples/common-whisper.cpp. "-of -" can be specified (or this can be
inferred from "-" as the input file) to output to stdout. This is useful
for piping to other applications.

Closes ggml-org#3048
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.

Can't output to file descriptor
1 participant