Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ziflex committed Dec 13, 2021
1 parent db746b5 commit d9e6fb7
Show file tree
Hide file tree
Showing 4 changed files with 183 additions and 100 deletions.
7 changes: 5 additions & 2 deletions browser/browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package browser
import (
"context"

"github.com/ziflex/waitfor/pkg/runner"
"github.com/go-waitfor/waitfor"
"github.com/go-waitfor/waitfor-http"
)

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

func Wait(ctx context.Context, opts Options) error {
runner := waitfor.New(http.Use())

return runner.Test(ctx, []string{
opts.ToURL(),
}, runner.WithAttempts(10))
}, waitfor.WithAttempts(10))
}

func Close(ctx context.Context, opts Options, pid uint64) error {
Expand Down
1 change: 1 addition & 0 deletions ferret/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func main() {
},
}

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

rootCmd.AddCommand(
Expand Down
45 changes: 41 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,18 +1,55 @@
module github.com/MontFerret/cli

go 1.14
go 1.17

require (
github.com/Masterminds/semver/v3 v3.1.1
github.com/MontFerret/ferret v0.16.1
github.com/MontFerret/ferret v0.16.2
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e
github.com/go-waitfor/waitfor v1.0.0
github.com/go-waitfor/waitfor-http v1.0.0
github.com/mitchellh/go-homedir v1.1.0
github.com/natefinch/lumberjack v2.0.0+incompatible
github.com/pkg/errors v0.9.1
github.com/rs/zerolog v1.26.0
github.com/spf13/cobra v1.2.1
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.9.0
github.com/ziflex/waitfor v1.1.0
github.com/spf13/viper v1.10.0
)

require (
github.com/PuerkitoBio/goquery v1.8.0 // indirect
github.com/andybalholm/cascadia v1.3.1 // indirect
github.com/antchfx/htmlquery v1.2.4 // indirect
github.com/antchfx/xpath v1.2.0 // indirect
github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20211211185417-43fb4c2dbe28 // indirect
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
github.com/corpix/uarand v0.1.1 // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/gorilla/css v1.0.0 // indirect
github.com/gorilla/websocket v1.4.2 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/kr/pretty v0.2.0 // indirect
github.com/mafredri/cdp v0.32.0 // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/mitchellh/mapstructure v1.4.3 // indirect
github.com/pelletier/go-toml v1.9.4 // indirect
github.com/sethgrid/pester v1.1.0 // indirect
github.com/spf13/afero v1.6.0 // indirect
github.com/spf13/cast v1.4.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/stretchr/objx v0.1.1 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
github.com/wI2L/jettison v0.7.3 // indirect
golang.org/x/net v0.0.0-20211209124913-491a49abca63 // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20211205182925-97ca703d548d // indirect
golang.org/x/text v0.3.7 // indirect
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
gopkg.in/ini.v1 v1.66.2 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
Loading

0 comments on commit d9e6fb7

Please sign in to comment.