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

Redesign min command #674

Closed
vanstee opened this issue May 11, 2016 · 0 comments
Closed

Redesign min command #674

vanstee opened this issue May 11, 2016 · 0 comments
Assignees
Milestone

Comments

@vanstee
Copy link
Member

vanstee commented May 11, 2016

Similar to max, min can currently only be used to find the minimum among a list of args. We should instead find the min in the input list and allow variable substitution.

USAGE

min [$variable]

EXAMPLES

seed '[{"a": 2}, {"a": 1}, {"a": 3}]' | min
> {"a": 1}

seed '[{"a": 2}, {"a": 1}, {"a": 3}]' | min $a
> 1

seed '[{"a": {"b": 2}}, {"a": {"b": 1}}, {"a": {"b": 3}}]' | min $a.b
> 1
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