-
Notifications
You must be signed in to change notification settings - Fork 120
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
Reconcile all Carvel tools to behave identically when no arguments are given #290
Comments
both ytt and kbld do not display any error, because it theory its valid to give them to input and have them return no output. other commands do not have such behaviour because they always require some input. |
I don't understand the theory. In the It's the difference between: $ echo "foo: bar" | ytt
$ and $ echo "foo: bar" | ytt -f-
foo: bar
$ and the same kind of thing seems to apply to $ echo "image: nginx" | kbld
Succeeded and $ echo "image: nginx" | kbld -f-
resolve | final: nginx -> index.docker.io/library/nginx@sha256:644a70516a26004c97d0d85c7fe1d0c3a67ea8ab7ddf4aff193d9f301670cf36
---
image: index.docker.io/library/nginx@sha256:644a70516a26004c97d0d85c7fe1d0c3a67ea8ab7ddf4aff193d9f301670cf36
metadata:
annotations:
kbld.k14s.io/images: |
- origins:
- resolved:
tag: latest
url: nginx
url: index.docker.io/library/nginx@sha256:644a70516a26004c97d0d85c7fe1d0c3a67ea8ab7ddf4aff193d9f301670cf36
Succeeded Seems like it would be possible for a user to mistakenly believe that piping STDOUT to What am I missing? |
you are right that -f is needed for input, which means that this could only happen when no flags are given. that may happen if you are writing wrappers (in bash, etc) that allow to deal with 0+ files -- im thinking of it as |
This. This is the bit of context I bet I was missing. Yeah... I can absolutely see it from that perspective.
At first blush, the examples I gave above seem to me to be compelling evidence to make the 0 files case an error case. |
Describe the problem/challenge you have
Reported first as: carvel-dev/kbld#184
For each command-line tool in the Carvel suite, they behave differently from others when no arguments are given.
Describe the solution you'd like
For all the tools to behave identically, unless there's a clear reason to be different.
Seems like the most useful behavior would be to:
Anything else you would like to add:
[Additional information that will assist in solving the issue.]
The text was updated successfully, but these errors were encountered: