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 colour to filenames and a blank link to make visually reading easier #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

krutten
Copy link

@krutten krutten commented Nov 7, 2020

Updated the code to add a blank line before the filename and colour it green. This makes seeing the blocks easier when reviewing the results.

@@ -17,3 +17,4 @@ glob = "0.3.0"
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.8"
serde_json = "1.0"
ansi_term = "0.11.0" # Version 0.11.0 already required for clap
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rust can handle different versions of the same crate being in the source tree. I'd just use the latest version 0.12. The code where you use it does not interact with anything related to clap so there is no problem.

@@ -9,6 +9,7 @@ use std::{
path::Path,
rc::Rc,
};
use ansi_term::Colour::Green;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In rust its common to let rustfmt format the files before checking them in (usually editors handle this automatically). Rustfmt orders use statements alphabetically (meaning this line would be line 1).

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