Skip to content

Convert fetcher command to buf.build/go/app#2263

Merged
pkwarren merged 3 commits intomainfrom
pkw/fetcher-bufapp
Feb 17, 2026
Merged

Convert fetcher command to buf.build/go/app#2263
pkwarren merged 3 commits intomainfrom
pkw/fetcher-bufapp

Conversation

@pkwarren
Copy link
Member

Migrate the fetcher command to use the buf.build/go/app.

Migrate the fetcher command to use the buf.build/go/app.
Copy link
Member

@stefanvanburen stefanvanburen 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 for doing the slog migration too. I think we can probably nix the interrupt handling here

appContainer := app.NewContainer(map[string]string{}, os.Stdin, os.Stdout, os.Stderr, root)
nameContainer, err := appext.NewNameContainer(appContainer, "fetcher")
require.NoError(t, err)
logger := slog.New(slog.NewTextHandler(testWriter{t}, &slog.HandlerOptions{Level: slog.LevelDebug}))
Copy link
Member

Choose a reason for hiding this comment

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

I thought we had something like this upstream, but I'm not seeing it. feels like something we ought to have (maybe in standard-go? vaguely related: bufbuild/standard-go#4)

Copy link
Member Author

Choose a reason for hiding this comment

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

It would definitely be handy - especially now that t.Output exists.

@pkwarren pkwarren enabled auto-merge (squash) February 17, 2026 21:12
@pkwarren pkwarren merged commit 43ee246 into main Feb 17, 2026
3 checks passed
@pkwarren pkwarren deleted the pkw/fetcher-bufapp branch February 17, 2026 21:12
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

Comments