forked from getporter/porter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Standardize table printing (getporter#1876)
* Standardize table printing Only use a single table printing library, with support for proper column wrapping when data is a column is very long. We have been having trouble with column data being so wide the table is unreadable when the terminal forces the text to wrap. This also updates all of Porter to use the single library, which has a slightly different output (it adds a line under the table headers). When I went through and updated all the expected console output tests, I took the opportuntity to use the improved test.CompareToGoldenFile helper, which makes syncing the expected test output much easier. Signed-off-by: Carolyn Van Slyck <[email protected]> * Update code to use new table printer Update tests to use test.CompareGoldenFile Signed-off-by: Carolyn Van Slyck <[email protected]> * Improve test.CompareGoldenFile When the golden file for a test doesn't exist, create it. This makes it easier to get started using golden files without having to create the empty file first. You can just edit the test to use that helper and it will make the file for you when run with mage updatetestfiles Signed-off-by: Carolyn Van Slyck <[email protected]> Signed-off-by: joshuabezaleel <[email protected]>
- Loading branch information
1 parent
8060f2e
commit 0c3d075
Showing
34 changed files
with
319 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--------------------------------- | ||
Name Version Author | ||
--------------------------------- | ||
exec v1.0 Porter Authors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.