Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aramprice committed May 29, 2024
1 parent 730969f commit 796e0eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
5 changes: 3 additions & 2 deletions cmd/completion/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import (
"reflect"
"strings"

boshlog "github.com/cloudfoundry/bosh-utils/logger"
"github.com/spf13/cobra"

boshcmd "github.com/cloudfoundry/bosh-cli/v7/cmd"
"github.com/cloudfoundry/bosh-cli/v7/cmd/opts"
boshui "github.com/cloudfoundry/bosh-cli/v7/ui"
boshlog "github.com/cloudfoundry/bosh-utils/logger"
"github.com/spf13/cobra"
)

const initCmdName = "help"
Expand Down
16 changes: 8 additions & 8 deletions cmd/completion/completion_test.go
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
package completion_test

import (
"os"
"strings"

"github.com/cloudfoundry/bosh-cli/v7/cmd/completion"
"github.com/cloudfoundry/bosh-utils/logger"
boshlog "github.com/cloudfoundry/bosh-utils/logger"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"github.com/cloudfoundry/bosh-cli/v7/cmd/completion"
)

var _ = Describe("Completion Integration Tests", func() {
var (
boshComplete *completion.BoshComplete
)
var boshComplete *completion.BoshComplete

BeforeEach(func() {
testLogger := logger.NewWriterLogger(logger.LevelInfo, os.Stderr)
testLogger := boshlog.NewWriterLogger(boshlog.LevelInfo, GinkgoWriter)
fakeCmdCtx := &completion.CmdContext{}
fakeDq := completion.NewDirectorQueryFake(fakeCmdCtx)
fakeCompletionFunctionMap := completion.NewCompleteFunctionsMap(testLogger, fakeDq)
fakeCompletionFunctionMap :=
completion.NewCompleteFunctionsMap(testLogger, fakeDq)

boshComplete = completion.NewBoshCompleteWithFunctions(testLogger, fakeCmdCtx, fakeCompletionFunctionMap)
})

Expand Down

0 comments on commit 796e0eb

Please sign in to comment.