We will inspect the function too. :) And we will see how it evolves.

On Thu, Nov 2, 2023 at 1:01 PM Panagiotis Nezis <pne...@gmail.com> wrote:

> What if an alias is a function?
>
> On Thursday, November 2, 2023 at 1:49:43 PM UTC+2 José Valim wrote:
>
>> Before going down this road, I would first like to add "mix help
>> --aliases" and we could show the alias definition (i.e. what it invokes). I
>> think it would already be a massive improvement to the UX. Would you like
>> to give this a try?
>>
>> On Thu, Nov 2, 2023 at 12:45 PM Panagiotis Nezis <pne...@gmail.com>
>> wrote:
>>
>>> Big projects tend to have multiple aliases. It would be nice, especially
>>> for newcomers, to be able to document the project's aliases. This is
>>> especially useful for aliases expecting CLI arguments.
>>>
>>> An option could be to add an `aliases_docs` project config setting where
>>> you could be able to (optionally) define a shortdoc and (maybe) a detailed
>>> doc for an alias. Something like:
>>>
>>>     aliases_docs: [
>>>         lint: [
>>>            shordoc: "lints the project",
>>>            doc: """
>>>            Some detailed docs here
>>>            """
>>>         ]
>>>     ]
>>>
>>> Would be happy to open a PR if you agree with this proposal.
>>>
>>> --
>>> 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-co...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/elixir-lang-core/CAPxxbtguAJjSSHxqP6XbpJXbyNAm_dQpXu5ZhzdMiU52eM-4hg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/elixir-lang-core/CAPxxbtguAJjSSHxqP6XbpJXbyNAm_dQpXu5ZhzdMiU52eM-4hg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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/9d7749c0-49c8-4a7f-ac15-7bdfa2c05df9n%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/9d7749c0-49c8-4a7f-ac15-7bdfa2c05df9n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAGnRm4%2Be_YKRy1e8iy_E%3DNUg9Uu5upDS2vmiNNd_bqV-ZF1QMw%40mail.gmail.com.

Reply via email to