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

Verbose View for Interactive Output #151

Merged
merged 8 commits into from
Aug 4, 2022

Conversation

digocorbellini
Copy link
Contributor

Issue #, if available:

Description of changes:
Created an additional view for the interactive output option which displays all of the details of a selected instance type in JSON format (uses the VerboseInstanceTypeOutput function implemented in pkg/selector/outputs/outputs.go to format the instance type). This new view is reached by pressing "enter" on any highlighted row during the interactive output mode. The highlighted instance type will then be shown in detail in a horizontally and vertically resizable viewport.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

verbose_view_demo.mov

@digocorbellini digocorbellini requested a review from a team as a code owner August 2, 2022 04:17
@digocorbellini digocorbellini self-assigned this Aug 2, 2022
Copy link
Contributor

@bwagner5 bwagner5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amazing!

pkg/selector/outputs/bubbletea.go Outdated Show resolved Hide resolved
pkg/selector/outputs/bubbletea.go Outdated Show resolved Hide resolved
pkg/selector/outputs/bubbletea.go Outdated Show resolved Hide resolved
pkg/selector/outputs/bubbletea.go Outdated Show resolved Hide resolved
Copy link
Contributor

@AustinSiu AustinSiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm thanks!

rows = append(rows, newRow)
switch m.currentState {
case stateTable:
return m.tableModel.view()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks much cleaner with the moving around, thanks! 👍

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.

None yet

3 participants