Skip to content

Add completions command to generate shell completions for CLI args. - #35

Open
KosakaIsMe wants to merge 1 commit into
ChillFish8:mainfrom
KosakaIsMe:shell_completions
Open

KosakaIsMe wants to merge 1 commit into
ChillFish8:mainfrom
KosakaIsMe:shell_completions

Conversation

@KosakaIsMe

Copy link
Copy Markdown

Wanted shell completions like Av1an, decided to add them. Do note that I had an LLM assist me as Rust is beyond me, so apologies if anything is wrong. I've confirmed it works, and it passes cargo check.

@ChillFish8

Copy link
Copy Markdown
Owner

Not against this change, only thing I would say is I'd be curious to see if we can have it automatically write the completions rather than needing to be manual?

I am thinking of something like how just works doesn't require the user to manually trigger the completions writing to get the completions to be available for the local Justfile.

@KosakaIsMe

Copy link
Copy Markdown
Author

I am thinking of something like how just works doesn't require the user to manually trigger the completions writing to get the completions to be available for the local Justfile.

Looking at how Just does its completions, it has a single system wide completion that runs just when pressing tab and (from what I can guess) reads the Justfile in the working directory and spits out completions for that on the fly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants