Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67e8c9a

Browse files
Copilotmatifali
andcommitted
Fix formatting issues in exp_task_create files
- Fixed import ordering using gci tool - Removed trailing whitespace using gofumpt - Resolves CI formatting checks Co-authored-by: matifali <[email protected]>
1 parent 66f1c31 commit 67e8c9a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cli/exp_task_create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import (
55
"io"
66
"strings"
77

8+
"github.com/coder/serpent"
89
"github.com/google/uuid"
910
"golang.org/x/xerrors"
1011

1112
"github.com/coder/coder/v2/cli/cliui"
1213
"github.com/coder/coder/v2/codersdk"
13-
"github.com/coder/serpent"
1414
)
1515

1616
func (r *RootCmd) taskCreate() *serpent.Command {

cli/exp_task_create_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"testing"
1010
"time"
1111

12+
"github.com/coder/serpent"
1213
"github.com/google/uuid"
1314
"github.com/stretchr/testify/assert"
1415

@@ -17,7 +18,6 @@ import (
1718
"github.com/coder/coder/v2/coderd/httpapi"
1819
"github.com/coder/coder/v2/codersdk"
1920
"github.com/coder/coder/v2/testutil"
20-
"github.com/coder/serpent"
2121
)
2222

2323
func TestTaskCreate(t *testing.T) {
@@ -339,15 +339,15 @@ func TestTaskCreateHelp(t *testing.T) {
339339
t.Parallel()
340340

341341
ctx := testutil.Context(t, testutil.WaitShort)
342-
342+
343343
inv, _ := clitest.New(t, "exp", "task", "create", "--help")
344344
var sb strings.Builder
345345
inv.Stdout = &sb
346346
inv.Stderr = &sb
347-
347+
348348
err := inv.WithContext(ctx).Run()
349349
assert.NoError(t, err)
350-
350+
351351
output := sb.String()
352352
// Verify that the examples are present in the help output
353353
assert.Contains(t, output, "Create a task with all flags specified")

0 commit comments

Comments
 (0)