KEMBAR78
Remade flags to subcommands by mgrachev · Pull Request #342 · dotenv-linter/dotenv-linter · GitHub
Skip to content

Conversation

@mgrachev
Copy link
Member

@mgrachev mgrachev commented Nov 15, 2020

Close #333

What was done:

  • Remade the --fix/-f flag to the fix subcommand;
  • Remade the --show-checks flag to the list subcommand;
  • Fixed a bug with output for multiple files in quiet mode (and wrote a test for that case);
  • Added colored help output.

✔ Checklist:

  • This PR has been added to CHANGELOG.md (at the top of the list);
  • Tests for the changes have been added (for bug fixes / features);
  • Docs have been added / updated (for bug fixes / features).

@mgrachev mgrachev added this to the v3.0.0 milestone Nov 15, 2020
Copy link
Member

@DDtKey DDtKey left a comment

Choose a reason for hiding this comment

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

It looks very transparent now, thanks for the work done! 🚀
I left a couple of comments, please take a look 🙂

P.S: I also see that this is not yet ready, but I allowed myself to leave comments right now, I hope this can be useful and I do not interfere with the progress of your work 🙏

@codecov-io
Copy link

codecov-io commented Nov 17, 2020

Codecov Report

Merging #342 (15c1c8c) into master (794fce7) will decrease coverage by 0.15%.
The diff coverage is 92.22%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #342      +/-   ##
==========================================
- Coverage   97.13%   96.97%   -0.16%     
==========================================
  Files          34       34              
  Lines        2371     2415      +44     
==========================================
+ Hits         2303     2342      +39     
- Misses         68       73       +5     
Impacted Files Coverage Δ
src/main.rs 83.72% <84.84%> (+1.57%) ⬆️
src/lib.rs 97.19% <95.55%> (-2.81%) ⬇️
src/common/output/check.rs 100.00% <100.00%> (ø)
src/common/output/fix.rs 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 794fce7...15c1c8c. Read the comment docs.

@mgrachev mgrachev force-pushed the subcommands branch 3 times, most recently from 9ffba32 to e46f741 Compare November 17, 2020 16:18
@mgrachev mgrachev changed the title Subcommands Remade flags to subcommands Nov 17, 2020
@mgrachev mgrachev force-pushed the subcommands branch 5 times, most recently from 4128b73 to 15c1c8c Compare November 17, 2020 16:50
@mgrachev mgrachev marked this pull request as ready for review November 17, 2020 17:07
Signed-off-by: Mikhail Grachev <work@mgrachev.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Proposal: Using subcommands intead of flags

3 participants