-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add a way to get a function's description from a shell script #597
Comments
👍 |
Ohhhh, 👍 👍 👍 |
👍 Wrote up a Fish function over on https://github.com/jonmarkprice/fish-functions/blob/master/desc.fish based on @adambrenecki's comment. But obviously it would make more sense for there to be an option as part of the |
Would be useful for scripts replacing simple Make files. |
It's terribly unpleasant what it does, but you might find |
OK, I'm surprised, that doesn't do what I imagined it would after actually looking at it. Nevermind! |
Probably if you give |
interesting: |
What description should
seen in pager for
|
Introspection is a useful tool. This is similar to issue #3295 and should be implemented just on general principal. Having said that I'm wondering what the use case is for this feature. |
Virtualfish has a single |
We now support
A pull-request to implement that would be welcomed. |
I have a proof of concept implementation that addresses this issue by building on the |
Currently, the only way to do this is (as far as I can tell) is by parsing the full output of
functions
to pull out the argument to--description
(egfunctions $func_name | head -n 1 | sed -E "s|.*'(.*)'.*|\1|"
).The text was updated successfully, but these errors were encountered: