ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ilya Kasnacheev <ilya.kasnach...@gmail.com>
Subject Re: [DISCUSSION] Add autocompletion for commands in control.sh
Date Mon, 07 Sep 2020 15:49:42 GMT
Hello!

Not everyone is using bash, which leads me to question whether there's any
common approach where we can hint a shell what our executable can do so
that it can discover and auto-complete our control.sh

Regards,
-- 
Ilya Kasnacheev


пн, 7 сент. 2020 г. в 17:47, ткаленко кирилл <tkalkirill@yandex.ru>:

> Hello, folks!
>
> I spent time to analyze the possibility of adding auto completion for the
> "control.sh" with the [1].
>
> To do this, at the beginning, we need to adapt the "control.sh" code to
> [1], then we can automatically create a "bash completion script" via [2],
> and then install it, for example, with the "source" command and the
> "control.sh" script itself via "install".
>
> This is only possible for nix systems.
>
> It is theoretically possible to add the "control.sh" extension via plugins
> and auto-generate "bash completion script".
>
> Thus, I propose a plan:
> 1)Adapt "control.sh" to [1];
> 2)Automatic creation of "bash completion script" for the release build;
> 3)Adding extensibility "control.sh" and automatic re-creation of "bash
> completion script". (optional)
>
> What do you think, comments?
>
> [1] - https://picocli.info/
> [2] -
> https://picocli.info/autocomplete.html#_completion_script_generation_details
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message