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

support pipe for omit and pick #367

Open
universam1 opened this issue Apr 18, 2023 · 0 comments
Open

support pipe for omit and pick #367

universam1 opened this issue Apr 18, 2023 · 0 comments

Comments

@universam1
Copy link

It was surprising to me to learn that omit and pick do not support a pipe signature, as it reads natural to me.

{{- range $key, $value := include "myConf" . | fromYaml | omit "somekey" -}}
{{- dict "one" 1 "two" 222222 | pick "two" -}}

Instead it errors out

can't handle "xy" for arg of type map[string]interface {}
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