alire-project / alire

Command-line tool from the Alire project and supporting library
GNU General Public License v3.0
268 stars 44 forks source link

Enhancement: Distribute bash completion with alr #1675

Open hexpunk opened 1 month ago

hexpunk commented 1 month ago

There's a much appreciated bash completion script at https://github.com/alire-project/alire/blob/master/scripts/alr-completion.bash. It would be really nice if the script was bundled with the alr executable in such a way that a command would spit out the contents. I think it would be convenient, especially if features are added later, for keeping the bash completion script in sync with my alire installation.

As for how to embed the bash script into the executable, C has the #embed preprocessor since C23. Also, the Ada Web Server project has a tool called awsres specifically for generating Ada code to embed resources from file contents.

mosteo commented 2 weeks ago

I've used awsres many years ago and it's very nice, so this is an option.