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

Check that input files exist before opening editor #36

Merged
merged 4 commits into from
Jun 18, 2021
Merged

Check that input files exist before opening editor #36

merged 4 commits into from
Jun 18, 2021

Conversation

frsche
Copy link
Contributor

@frsche frsche commented Jun 13, 2021

Closes #19

src/main.rs Outdated
if !nonexisting_files.is_empty() {
println!("The following input files do not exist:");
for file in nonexisting_files {
println!("{}", Colour::Green.paint(file));
Copy link
Contributor

Choose a reason for hiding this comment

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

What about red or yellow to better show there is a problem?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, you are right. I used the same color for the files printed when checking for existing files. Maybe these should also be in red/yellow?

@marcusbuffett
Copy link
Owner

Looks great! Sorry for the slowness here, merging now 👍

@marcusbuffett marcusbuffett merged commit 33fe490 into marcusbuffett:master Jun 18, 2021
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.

The program should check that the input files does exist
3 participants