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

Improve show puppetfile #273

Merged
merged 2 commits into from
Jul 8, 2020

Conversation

smortex
Copy link
Member

@smortex smortex commented Jul 8, 2020

Improve the output of onceover show puppetfile:

  • Correctly align columns of text with ANSI escape sequences thanks to terminal-tables;
  • Sort lines by module full name.

Before:
before

After:
after

smortex added 2 commits July 7, 2020 16:01
table_print column width is miscomputed when ANSI escape sequences are
used, leading to inconsistent alignments.

Switch to terminal-table which handle these sequences gracefuly.
When running onceover show puppetfile multiple times, the ordering of
lines is unpredictable, making it hard to compare successive runs.

Sort lines by  module fullname so that the modules ordering is
predictible.
@dylanratcliffe
Copy link
Collaborator

This looks great, will fix #182 also. I've re-kicked the appveyor tests as the error seems transient

@dylanratcliffe dylanratcliffe merged commit bc5dae8 into voxpupuli:master Jul 8, 2020
@smortex smortex deleted the improve-show-puppetfile branch July 8, 2020 15:56
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