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

String type support for filecontent #482

Open
mitar opened this issue Dec 29, 2024 · 0 comments
Open

String type support for filecontent #482

mitar opened this issue Dec 29, 2024 · 0 comments

Comments

@mitar
Copy link
Contributor

mitar commented Dec 29, 2024

Currently filecontent requires a field to be []byte. I would propose that it also allows string field in which case file contents is simply converted with string(...) in Go. It allows one to signal that the flag expects a textual file as input.

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

No branches or pull requests

1 participant