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 scrolling to table, use table widget for support bundle #244
Add scrolling to table, use table widget for support bundle #244
Conversation
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.
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.
@GraysonNull Can you attach a couple of screenshots showing the previous and the new terminal UI here for review?
return lines | ||
} | ||
|
||
// func drawGrid(analyzeResults []*analyzerunner.AnalyzeResult) { |
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.
What's this unused block for?
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.
oh shoot, nothing. Just need to remove it
func showSaved(filename string) { | ||
termWidth, termHeight := ui.TerminalDimensions() | ||
|
||
savedMessage := widgets.NewParagraph() | ||
savedMessage.Text = fmt.Sprintf("Preflight results saved to\n\n%s", filename) | ||
savedMessage.Text = fmt.Sprintf("Support Bundle analysis results saved to\n\n%s", filename) |
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.
nice catch
@@ -198,3 +316,19 @@ func save(analyzeResults []*analyzerunner.AnalyzeResult) (string, error) { | |||
|
|||
return filename, nil | |||
} | |||
|
|||
func appName(supportBundleName string) string { |
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.
This function looks to be copied from elsewhere? Should we move it to a shared package and use the same implementation?
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.
It is yes. Yep I can move it.
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.
No description provided.