Such command would work exactly the same as the `IEx.Helpers.h/1` macro - you 
provide Elixir AST that describe function, and Mix prints documentation for 
given AST. It could be helpful for some CLI tooling (for example Vim provides 
`keywordprg` configuration option where one can set command to show 
documentation). I know that in world with LSP it is less useful in editors, but 
I still think that it can come handy at some times.

Example (and rough) implementation of such task can be seen there 
https://gist.github.com/hauleth/8f7e25223de73eb6b7373c6adae43fb3.

--

Łukasz Niemier
luk...@niemier.pl

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/590F9CD9-E648-47DA-8931-1993A336F2A5%40niemier.pl.

Reply via email to