Skip to content
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

Add -o/--output option for file output #75

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

Conversation

JohnCMoon
Copy link

Currently, there's no way to write program output to a file other than using shell redirection. In some cases, such as containerized CI jobs that may not have a shell, this leaves no way to write the output to file.

In my specific case, I'm using Earthly's Rust library which wraps Cargo for improved caching in CI. Unfortunately, there's no way to write the output of cargo-license to a file using their interface to cargo. I'd be able to do it with an option like this though!

Currently, there's no way to write program output to a file other than
using shell redirection. In some cases, such as containerized CI jobs
that may not have a shell, this leaves no way to write the output to file.

Adding a -o option allows users to write the output to a file without
a shell.
@hvanbin
Copy link

hvanbin commented Mar 7, 2024

Good idea! I'm often in shell-less environments, and this would be helpful!

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