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

Feature Request: Save output as HTML #12

Open
ajmeese7 opened this issue Nov 18, 2022 · 4 comments
Open

Feature Request: Save output as HTML #12

ajmeese7 opened this issue Nov 18, 2022 · 4 comments
Labels
enhancement New feature or request feature request

Comments

@ajmeese7
Copy link
Contributor

Whenever I'm saving the output logs of the gitfive command, all I can do is copy the text, so it loses all its color and isn't as visually appealing when investigating the results later.

If there was an option (i.e. --html) to save the colored output so it can be viewed identically later, that would be something I would be interested in having in this tool.

@mxrch
Copy link
Owner

mxrch commented Nov 18, 2022

Hey, I don't think it's a good idea, colors aren't made using HTML/CSS so the param --html is nonsense for me.
If someone wants to keep the colors, they can redirect the stdout in a file.

@ajmeese7
Copy link
Contributor Author

Fair enough, I understand where you're coming from. Would you be open to a PR for this in the future or are you entirely not interested?

On your second point, I tried redirecting the stdout to a file and all the colors were lost, if you have a way to do so that preserves the colors I would be very interested in seeing it in action.

@mxrch
Copy link
Owner

mxrch commented Nov 18, 2022

Would it be a new feature like a full HTML output, with pretty style etc, or just the raw output with colors ? (choice will not affect the final answer, just curious 😄)

On which plateform are you ? Windows doesn't seems to keep colors, but Linux does

@ajmeese7
Copy link
Contributor Author

I'm in Linux, currently running Zorin OS which is a Ubuntu-based distro. I haven't seen any of the colors captured when I pipe to a file, either with a redirect or with tee.

And I like having pretty reports whenever possible, producing an automatic HTML/PDF dossier to present when reporting to non-technical folks makes life incredibly easy on my side of things, even if I just take a screenshot of it. Raw colors would be plenty for now, just to make it easier to visually parse, but going the full route to report generation is always a good thing IMHO.

@mxrch mxrch added the enhancement New feature or request label Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request
Projects
None yet
Development

No branches or pull requests

2 participants