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

Output help when cgip is sent with no args #21

Open
annaleighsmith opened this issue May 10, 2024 · 1 comment
Open

Output help when cgip is sent with no args #21

annaleighsmith opened this issue May 10, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@annaleighsmith
Copy link
Collaborator

I was thinking it would be nice if cgip acted similar to cargo when you used it with no arguments and just output --help. Also if it used ansi colors like cargo does as well, perhaps term color ansi_term or colored.
ksnip_20240510-123329

@annaleighsmith annaleighsmith added the enhancement New feature or request label May 10, 2024
@divanvisagie
Copy link
Owner

This is a great suggestion!, I just want to be careful though since I have one use case that I really don't want broken.

If anything is piped into cgip we need to make sure it still works without arguments. I actually mainly use cgip inside neovim. When you select a bunch of text, you can hit ! and type cgip as a command. (I need to add this superpower suggestion to our docs somehow, its great).

So, lets only print help if we have no arguments, AND we have no input coming from stdin. Other than that I think this would really add polish to the tool overall and make it look a bit more next gen.

@divanvisagie divanvisagie added the good first issue Good for newcomers label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants