Skip to content

Commit

Permalink
Dump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmacdonald committed Dec 11, 2022
1 parent fdad0f3 commit 08d83c6
Show file tree
Hide file tree
Showing 4 changed files with 889 additions and 120 deletions.
11 changes: 11 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,17 @@ var rootCmd = &cobra.Command{
}
os.Exit(0)
}
resultChan := make(chan string)
go func() {
for {
select {
case result := <-resultChan:
log.Printf("Results: %s", result)
case <-ctx.Done():
return
}
}
}()
// REPL CLI
reader := bufio.NewReader(os.Stdin)
for {
Expand Down
22 changes: 8 additions & 14 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,14 @@ module github.com/leighmacdonald/rcon
go 1.14

require (
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/magiconair/properties v1.8.4 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mitchellh/go-homedir v1.1.0
github.com/mitchellh/mapstructure v1.4.1 // indirect
github.com/pelletier/go-toml v1.8.1 // indirect
github.com/pelletier/go-toml/v2 v2.0.6 // indirect
github.com/pkg/errors v0.9.1
github.com/spf13/afero v1.5.1 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/spf13/cobra v1.1.1
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/viper v1.7.1
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c // indirect
golang.org/x/text v0.3.5 // indirect
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
gopkg.in/ini.v1 v1.62.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
github.com/spf13/afero v1.9.3 // indirect
github.com/spf13/cobra v1.6.1
github.com/spf13/viper v1.14.0
golang.org/x/sys v0.3.0 // indirect
golang.org/x/text v0.5.0 // indirect
)
Loading

0 comments on commit 08d83c6

Please sign in to comment.