Skip to content

Add ability for consumers to customize command usage, better UX#7

Merged
kalverra merged 3 commits into
mainfrom
customizeCommand
Jun 3, 2026
Merged

Add ability for consumers to customize command usage, better UX#7
kalverra merged 3 commits into
mainfrom
customizeCommand

Conversation

@kalverra
Copy link
Copy Markdown
Collaborator

@kalverra kalverra commented Jun 3, 2026

Now consuming packages can use, e.g.:

testrig.WithRootCommand("make test"),
testrig.WithHelpCommandFormatter(func(args string) string {
	return fmt.Sprintf("make test ARGS=%q", args)
}),

to customize their help outputs a little bit.

@kalverra kalverra requested a review from a team as a code owner June 3, 2026 16:49
@kalverra kalverra enabled auto-merge (squash) June 3, 2026 16:49
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

👋 kalverra, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@kalverra kalverra merged commit 3cd4f5e into main Jun 3, 2026
9 checks passed
@kalverra kalverra deleted the customizeCommand branch June 3, 2026 16:58
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.

2 participants