Skip to content

Commit 24e5f97

Browse files
committed
Rename cli to cmd
1 parent 93fec52 commit 24e5f97

12 files changed

+11
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Command-line tool and Go library to wait for various conditions to become true.
77

88
## Installation
99

10-
Make sure Go is installed and setup correctly. To pull the library into the `$GOPATH` directory, build the CLI, and put the binary into the `$GOBIN` directory, simply run:
10+
Make sure Go is installed and setup correctly. To pull the library into the `$GOPATH` directory, build the binary, and put it into the `$GOBIN` directory, simply run:
1111

1212
```
1313
go get github.com/st3v/waitfor/...

check/command_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
. "github.com/onsi/ginkgo/extensions/table"
1212
. "github.com/onsi/gomega"
1313
"github.com/onsi/gomega/gbytes"
14+
1415
"github.com/st3v/waitfor/check"
1516
)
1617

check/curl_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
. "github.com/onsi/gomega"
1313
"github.com/onsi/gomega/gbytes"
1414
"github.com/onsi/gomega/ghttp"
15+
1516
"github.com/st3v/waitfor/check"
1617
)
1718

cli/waitfor/curl.go cmd/waitfor/curl.go

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"strings"
88

99
"github.com/codegangsta/cli"
10+
1011
"github.com/st3v/waitfor/check"
1112
)
1213

File renamed without changes.
File renamed without changes.

cli/waitfor/main.go cmd/waitfor/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"os"
55

66
"github.com/codegangsta/cli"
7+
78
"github.com/st3v/waitfor"
89
)
910

cli/waitfor/port.go cmd/waitfor/port.go

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"strconv"
77

88
"github.com/codegangsta/cli"
9+
910
"github.com/st3v/waitfor/check"
1011
)
1112

cli/waitfor/port_test.go cmd/waitfor/port_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import (
1010

1111
. "github.com/onsi/ginkgo"
1212
. "github.com/onsi/gomega"
13-
1413
"github.com/onsi/gomega/gbytes"
14+
1515
"github.com/st3v/waitfor"
1616
"github.com/st3v/waitfor/check"
17-
"github.com/st3v/waitfor/cli/waitfor/fake"
17+
"github.com/st3v/waitfor/cmd/waitfor/fake"
1818
)
1919

2020
var _ = Describe("port command", func() {

cli/waitfor/shell.go cmd/waitfor/shell.go

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"regexp"
77

88
"github.com/codegangsta/cli"
9+
910
"github.com/st3v/waitfor"
1011
"github.com/st3v/waitfor/check"
1112
)

cli/waitfor/waitfor_suite_test.go cmd/waitfor/waitfor_suite_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ import (
99

1010
func TestWaitfor(t *testing.T) {
1111
RegisterFailHandler(Fail)
12-
RunSpecs(t, "waitfor cli")
12+
RunSpecs(t, "waitfor")
1313
}

waitfor_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66

77
. "github.com/onsi/ginkgo"
88
. "github.com/onsi/gomega"
9+
"golang.org/x/net/context"
910

1011
"github.com/st3v/waitfor"
11-
"golang.org/x/net/context"
1212
)
1313

1414
type condition struct {

0 commit comments

Comments
 (0)