Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

sg gen buf: fix completions#62555

Merged
bobheadxi merged 1 commit into
mainfrom
sg-gen-buf-completion-fix
May 8, 2024
Merged

sg gen buf: fix completions#62555
bobheadxi merged 1 commit into
mainfrom
sg-gen-buf-completion-fix

Conversation

@bobheadxi

@bobheadxi bobheadxi commented May 8, 2024

Copy link
Copy Markdown
Member

The command accepts buf.gen.yaml files, but the current completion provides generated Go files instead. The output is also provided in absolute-path format, which is difficult to read. This change addresses both issues, though the completion is a bit slow still.

Test plan

Before (incorrect completions):

image

After (✅):

go build -o ./sg ./dev/sg && ./sg install -f -p=false # install globally

image

Running sg gen buf against some of the suggested targets works as expected

@bobheadxi bobheadxi requested review from a team and ggilmore May 8, 2024 17:44
@cla-bot cla-bot Bot added the cla-signed label May 8, 2024
@bobheadxi bobheadxi merged commit a741669 into main May 8, 2024
@bobheadxi bobheadxi deleted the sg-gen-buf-completion-fix branch May 8, 2024 17:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants