yeoman / doctor

Detect potential issues with users system that could prevent Yeoman from working correctly
http://yeoman.io
BSD 2-Clause "Simplified" License
61 stars 17 forks source link

Checks formatting: Align left/right #10

Closed SBoudrias closed 9 years ago

SBoudrias commented 9 years ago

I want to align our output correctly so it is easier to read:

[Yeoman Doctor] Running sanity checks on your system
NODE_PATH match the npm root....................................OK
Global configuration file is valid..............................OK

Everything looks all right!

Two goals:

  1. Having dotted line as separator (make it more "header" like)
  2. Spanning it to the terminal width when possible.

There's a lot of table modules that could work, but they return a blob string rather than line per line. We need line per line here because in case of errors, we'll output help information under each check line.

A solution could be to just split the table module output on new lines and match the index, but I want to run it to the team before. There's probably a solution out there already.

sindresorhus commented 9 years ago

Can we go with minimal output and only output Everything looks all right! unless there's a failure in any of the steps?