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

?foo and ??foo for :help foo / :help find foo in the REPL #915

Merged
merged 9 commits into from
Feb 1, 2022
Merged

Conversation

johnkerl
Copy link
Owner

@johnkerl johnkerl commented Feb 1, 2022

I use :help and :help find a lot; :h and :h find are shorter, but they can be shorter than that. Also, this is reminiscent of R's on-line help.

$ mlr repl
Miller 6.0.0-dev REPL for darwin/amd64/go1.16.5
Docs: https://miller.readthedocs.io
Type ':h' or ':help' for online help; ':q' or ':quit' to quit.

[mlr] ?joink
joink  (class=conversion #args=2) Makes string from map/array keys.
Examples:
joink({"a":3,"b":4,"c":5}, ",") = "a,b,c".
joink([1,2,3], ",") = "1,2,3".

[mlr] ??joink
joink  (class=conversion #args=2) Makes string from map/array keys.
Examples:
joink({"a":3,"b":4,"c":5}, ",") = "a,b,c".
joink([1,2,3], ",") = "1,2,3".
joinkv  (class=conversion #args=3) Makes string from map/array key-value pairs.
Examples:
joinkv([3,4,5], "=", ",") = "1=3,2=4,3=5"
joinkv({"a":3,"b":4,"c":5}, "=", ",") = "a=3,b=4,c=5"

[mlr]

@johnkerl johnkerl merged commit 0e894aa into main Feb 1, 2022
@johnkerl johnkerl deleted the qq-help branch February 1, 2022 12:51
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.

1 participant