-
Notifications
You must be signed in to change notification settings - Fork 75
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 links and alignment functionality to the CLI formatter tooling #3327
Conversation
PR ChecklistHow to use this checklistHow to use this checklistPR AuthorFor each section, check a box when it is true. PR ReviewerCheck that the PR checklist action did not fail. Bug ReferencesNone. Confirm
How to properly reference fixed bugs
Test UpdatesUnit Tests
Integration Tests
Documentation
Does this PR require review from someone outside the core ubuntu-pro-client team?
|
Bad, bad Fix CI |
Some of our tables may have columns which are right-aligned instead of left-aligned. None of them are centered yet but this would follow easily if we need it. Signed-off-by: Renan Rodrigo <[email protected]>
Signed-off-by: Renan Rodrigo <[email protected]>
Add a function to create rendered links for the terminal, and logic to ignore anything but the text when calculating the length or printing to a non-tty stdout Signed-off-by: Renan Rodrigo <[email protected]>
f02b33e
to
9708aa6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks!
Why is this needed?
This PR solves all of our problems because it implements some needed niceties on top of the CLI tools we are working on.
This is based on #3323 and should be merged after that. (It is the same context though, I didn't push the commits there because that one is kinda approved I guess)
Test Steps
Unit tests cover functionality, integration will come because the new CLI commands depend on this.