Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shell completions for bash/zsh/fish/posh/etc #912

Open
3 tasks done
Freed-Wu opened this issue Sep 6, 2022 · 3 comments
Open
3 tasks done

Add shell completions for bash/zsh/fish/posh/etc #912

Freed-Wu opened this issue Sep 6, 2022 · 3 comments

Comments

@Freed-Wu
Copy link

Freed-Wu commented Sep 6, 2022

Description of the problem

❯ gitmoji -<TAB>
option
-c          Interactively commit using the prompts
--commit    Interactively commit using the prompts
--config    Setup gitmoji-cli preferences.
-g          Setup gitmoji-cli preferences.
-i          Initialize gitmoji as a commit hook
--init      Initialize gitmoji as a commit hook
--list      List all the available gitmojis
...

Solution

I guess in javascript there exists a library to generate shell completions automatically like

Alternatives

Don't use any library, like https://github.com/ytdl-org/youtube-dl/blob/master/devscripts or https://github.com/ogham/exa/tree/master/completions?

Additional context

No response

Validations

@carloscuesta
Copy link
Owner

Hey!

Thanks for opening the issue, indeed this would be a great improvement to the cli

Would you like to raise a Pull Request?

@carloscuesta
Copy link
Owner

Hey! Found this lib that can help implementing autocomplete:

https://github.com/f/omelette

@Freed-Wu
Copy link
Author

Would you like to raise a Pull Request?

Sorry for late. I am not familiar with javascript now 😢 and if any one can do it I will be very grateful 😄

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

No branches or pull requests

2 participants