mov-cli / mov-cli

Watch everything from your terminal.
https://mov-cli.github.io/
MIT License
411 stars 36 forks source link

[FEATURE] shell completions as separate files #281

Open pirate486743186 opened 1 month ago

pirate486743186 commented 1 month ago

Describe the feature/change you'd like.

the completions are part of the executable and they need to be run in order to be generated.

This complicates packaging and contributing to them. They should just be separate files.

THEGOLDENPRO commented 1 month ago

Never messed around with shell completions so I have no idea how to do this. Typer is what handles shell completions.

However it seems mov-cli version 4.2.11 broke auto complete after switching to typer 0.11.0 and above.

THEGOLDENPRO commented 1 month ago

Getting this to work with typer would be great.

pirate486743186 commented 2 weeks ago

in yt-dlp the completions are generated by scripts that can be run without been installed. You could just add scripts like that with relative module loading, that are not included in the final installation. This way we can package the completions and they will always be up to date