Skip to content

Commit 31a86b9

Browse files
sj26ampcode-com
andcommitted
Fix code formatting and update AGENT.md with correct lint command
- Fix gofmt formatting issues in internal/io/spinner_test.go and pkg/cmd/pipeline/create.go - Update AGENT.md with correct golangci-lint command Amp-Thread: https://ampcode.com/threads/T-69a131f0-814d-4d1d-b0fc-f7f61f34b1a6 Co-authored-by: Amp <amp@ampcode.com>
1 parent 1be2557 commit 31a86b9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

AGENT.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ This project is the Buildkite CLI (`bk`)
22

33
## Commands
44
- Test: `go test ./...`
5-
- Lint: `docker-compose -f .buildkite/docker-compose.yaml run lint`
5+
- Lint: `docker-compose -f .buildkite/docker-compose.yaml run golangci-lint golangci-lint run`
66
- Generate: `go generate` (required after GraphQL changes)
77
- Run: `go run cmd/bk/main.go`
88

@@ -16,3 +16,4 @@ This project is the Buildkite CLI (`bk`)
1616

1717
## Notes
1818
- CI: https://buildkite.com/buildkite/buildkite-cli
19+
- Always format after changing code

internal/io/spinner_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func TestSpinWhileTTYDetection(t *testing.T) {
6060
// Test that TTY detection works as expected
6161
// This test documents the behavior rather than forcing specific outcomes
6262
isTTY := isatty.IsTerminal(os.Stdout.Fd())
63-
63+
6464
actionCalled := false
6565
err := SpinWhile("TTY detection test", func() {
6666
actionCalled = true

pkg/cmd/pipeline/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import (
66

77
survey "github.com/AlecAivazis/survey/v2"
88
"github.com/MakeNowJust/heredoc"
9+
bk_io "github.com/buildkite/cli/v3/internal/io"
910
"github.com/buildkite/cli/v3/pkg/cmd/factory"
1011
buildkite "github.com/buildkite/go-buildkite/v4"
1112
"github.com/charmbracelet/lipgloss"
1213
"github.com/spf13/cobra"
13-
bk_io "github.com/buildkite/cli/v3/internal/io"
1414
)
1515

1616
func NewCmdPipelineCreate(f *factory.Factory) *cobra.Command {

0 commit comments

Comments
 (0)