Skip to content

Commit d9e6fb7

Browse files
committed
Updated dependencies
1 parent db746b5 commit d9e6fb7

File tree

4 files changed

+183
-100
lines changed

4 files changed

+183
-100
lines changed

browser/browser.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ package browser
33
import (
44
"context"
55

6-
"github.com/ziflex/waitfor/pkg/runner"
6+
"github.com/go-waitfor/waitfor"
7+
"github.com/go-waitfor/waitfor-http"
78
)
89

910
type Browser interface {
@@ -29,9 +30,11 @@ func Open(ctx context.Context, opts Options) (uint64, error) {
2930
}
3031

3132
func Wait(ctx context.Context, opts Options) error {
33+
runner := waitfor.New(http.Use())
34+
3235
return runner.Test(ctx, []string{
3336
opts.ToURL(),
34-
}, runner.WithAttempts(10))
37+
}, waitfor.WithAttempts(10))
3538
}
3639

3740
func Close(ctx context.Context, opts Options, pid uint64) error {

ferret/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ func main() {
4343
},
4444
}
4545

46+
rootCmd.CompletionOptions.DisableDefaultCmd = true
4647
rootCmd.PersistentFlags().StringP(config.LoggerLevel, "l", zerolog.InfoLevel.String(), fmt.Sprintf("Set the logging level (%s)", logger.LevelsFmt()))
4748

4849
rootCmd.AddCommand(

go.mod

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,55 @@
11
module github.com/MontFerret/cli
22

3-
go 1.14
3+
go 1.17
44

55
require (
66
github.com/Masterminds/semver/v3 v3.1.1
7-
github.com/MontFerret/ferret v0.16.1
7+
github.com/MontFerret/ferret v0.16.2
88
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e
9+
github.com/go-waitfor/waitfor v1.0.0
10+
github.com/go-waitfor/waitfor-http v1.0.0
911
github.com/mitchellh/go-homedir v1.1.0
1012
github.com/natefinch/lumberjack v2.0.0+incompatible
1113
github.com/pkg/errors v0.9.1
1214
github.com/rs/zerolog v1.26.0
1315
github.com/spf13/cobra v1.2.1
1416
github.com/spf13/pflag v1.0.5
15-
github.com/spf13/viper v1.9.0
16-
github.com/ziflex/waitfor v1.1.0
17+
github.com/spf13/viper v1.10.0
18+
)
19+
20+
require (
21+
github.com/PuerkitoBio/goquery v1.8.0 // indirect
22+
github.com/andybalholm/cascadia v1.3.1 // indirect
23+
github.com/antchfx/htmlquery v1.2.4 // indirect
24+
github.com/antchfx/xpath v1.2.0 // indirect
25+
github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20211211185417-43fb4c2dbe28 // indirect
26+
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
27+
github.com/corpix/uarand v0.1.1 // indirect
28+
github.com/fsnotify/fsnotify v1.5.1 // indirect
29+
github.com/gobwas/glob v0.2.3 // indirect
30+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
31+
github.com/gorilla/css v1.0.0 // indirect
32+
github.com/gorilla/websocket v1.4.2 // indirect
33+
github.com/hashicorp/hcl v1.0.0 // indirect
34+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
35+
github.com/kr/pretty v0.2.0 // indirect
36+
github.com/mafredri/cdp v0.32.0 // indirect
37+
github.com/magiconair/properties v1.8.5 // indirect
38+
github.com/mitchellh/mapstructure v1.4.3 // indirect
39+
github.com/pelletier/go-toml v1.9.4 // indirect
40+
github.com/sethgrid/pester v1.1.0 // indirect
41+
github.com/spf13/afero v1.6.0 // indirect
42+
github.com/spf13/cast v1.4.1 // indirect
43+
github.com/spf13/jwalterweatherman v1.1.0 // indirect
44+
github.com/stretchr/objx v0.1.1 // indirect
45+
github.com/subosito/gotenv v1.2.0 // indirect
46+
github.com/wI2L/jettison v0.7.3 // indirect
47+
golang.org/x/net v0.0.0-20211209124913-491a49abca63 // indirect
48+
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
49+
golang.org/x/sys v0.0.0-20211205182925-97ca703d548d // indirect
50+
golang.org/x/text v0.3.7 // indirect
51+
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
52+
gopkg.in/ini.v1 v1.66.2 // indirect
1753
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
54+
gopkg.in/yaml.v2 v2.4.0 // indirect
1855
)

0 commit comments

Comments
 (0)