Skip to content

Conversation

@zeroshade
Copy link
Member

closes #82

Copy link
Member

@amoeba amoeba left a 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)
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member Author

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

Copy link
Member

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!

Copy link
Member

@amoeba amoeba left a comment

Choose a reason for hiding this comment

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

Thanks!

@zeroshade zeroshade merged commit 8fad198 into main Oct 21, 2025
13 of 14 checks passed
@zeroshade zeroshade deleted the add-info-subcmd branch October 21, 2025 16:49
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.

Mechanism for telling the user what platforms a driver is available

3 participants