-
Notifications
You must be signed in to change notification settings - Fork 282
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 -L/--logo-only option #1468
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was kinda thinking of somehow baking this into Printer, but Printer wants an Info and the whole point is to not have an Info.
I see 2 ways to go:
- Build an empty
Info
. See theInfoBuilder
struct. I think this should be pretty easy. - Make
-L
an alias of--no-title --disabled-fields project head version created languages authors last-change url commits churn lines-of-code size license --no-color-palette
.
Do either of these seem reasonable?
Oh, and before I forget: thanks for your PR! I agree we should have this. It pairs well with |
Thanks! So i tried going with building an empty |
Allow language detection
I pushed aba656d to show what I meant. The benefit is that language detection still works, so users aren't forced to specify the language (forcing users to use the The change I pushed isn't complete. It should also
But how do you feel about continuing with this? |
Well, this is gonna sound real dumb, but i was intending this to work totally outside of git repos. So for example i could've had a script show me a random programming language each time i open a shell. And yeah i can still pass the I could try and make it detect if its in a git repo and act accordingly? (And if it's passed the |
Got it. Since this tool is so tied to git repos for most of its behavior, I don't know about making it work outside a repo in this case. I'll have to think about that. I could kind of see it automatically skipping all checks if However, have you considered using the onefetch-ascii crate? You could write a small executable that uses that library to print a logo. You could read from our YAML file to populate a list and default colors. Then you can follow pretty much any logic you want for picking a logo (e.g. randomization). I'd be curious to learn more about your use-case. |
Will probably do that then! And my usecase is basically just "i like looking at pretty colors" |
Add the ability to print an ASCII art logo without needing a git repository.
I was kinda thinking of somehow baking this into Printer, but Printer wants an Info and the whole point is to not have an Info.