-
Notifications
You must be signed in to change notification settings - Fork 6
feat(info): add info subcommand #144
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
Conversation
amoeba
left a comment
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 looks good. The implementation gets info about the latest version of the driver which is what I think we want. I left one comment about the output which I'm not loving yet and I added the info command to the CLI docs.
cmd/dbc/info.go
Outdated
| } | ||
| case dbc.Driver: | ||
| if isatty.IsTerminal(os.Stdout.Fd()) { | ||
| cmds = append(cmds, tea.EnterAltScreen) |
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.
Hrm, I'm seeing info open a pager-like interface, I don't like that as a default behavior. Was this intentional?
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.
yes that was intentional. I was matching the behavior of apt-get info etc. I can remove that pager interface if desired
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.
removed the pager interface and updated the PR
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.
Yeah, I think if we want do automatic paging on commands, it should be overall paradigm the CLI uses consistently so it's better to just print normally for now. Thank you!
0f30b6c to
2e3b434
Compare
amoeba
left a comment
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.
Thanks!
closes #82