Skip to content

feat(info): add info subcommand - #144

Merged
zeroshade merged 4 commits into
mainfrom
add-info-subcmd
Oct 21, 2025
Merged

zeroshade merged 4 commits into
mainfrom
add-info-subcmd

Conversation

@zeroshade

Copy link
Copy Markdown
Member

closes #82

@amoeba amoeba left a comment

Copy link
Copy Markdown
Member

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.

Comment thread cmd/dbc/info.go Outdated
}
case dbc.Driver:
if isatty.IsTerminal(os.Stdout.Fd()) {
cmds = append(cmds, tea.EnterAltScreen)

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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!

Comment thread cmd/dbc/info.go Resolved

@amoeba amoeba left a comment

Copy link
Copy Markdown
Member

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
@zeroshade
zeroshade deleted the add-info-subcmd branch October 21, 2025 16:49
zeroshade added a commit that referenced this pull request Apr 17, 2026
closes #82

---------

Co-authored-by: Bryce Mecum <[email protected]>

This branch was previously deployed

1 inactive deployment
snapshot — faac5906 Deployed Oct 21, 2025 by zeroshade
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

2 participants