running go mody tidy

This commit is contained in:
Colin Lyons
2023-01-05 16:54:05 +00:00
parent db58802bf2
commit 812fc86cf9
3 changed files with 3 additions and 58 deletions

2
go.mod
View File

@@ -3,6 +3,7 @@ module github.com/Indra-Labs/indra
go 1.19
require (
github.com/cybriq/proc v0.20.10
github.com/cybriq/qu v0.1.2
github.com/davecgh/go-spew v1.1.1
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0
@@ -69,7 +70,6 @@ require (
github.com/klauspost/compress v1.15.12 // indirect
github.com/klauspost/cpuid/v2 v2.2.1 // indirect
github.com/koron/go-ssdp v0.0.3 // indirect
github.com/kylelemons/godebug v1.1.0 // indirect
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
github.com/libp2p/go-cidranger v1.1.0 // indirect
github.com/libp2p/go-flow-metrics v0.1.0 // indirect

3
go.sum
View File

@@ -259,6 +259,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsr
github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY=
github.com/cybriq/proc v0.20.10 h1:8v6Wq7NtsZ05uyQZbdquMUwb1Zs5TTzJeJh6QucHjDQ=
github.com/cybriq/proc v0.20.10/go.mod h1:b6JDUUwfe8soxWzvAziWA/msrb73O2v6gZEQL+wHYx8=
github.com/cybriq/qu v0.1.2 h1:4R65BhG22C3mY4fXYZpfJYklw9N1AVkCwTwrby4andY=
github.com/cybriq/qu v0.1.2/go.mod h1:1Ph7YWr5HVJTBSRTQ8cFcaFE+DK56r+cSpbNWD+CQS8=
github.com/cyphar/filepath-securejoin v0.2.2/go.mod h1:FpkQEhXnPnOthhzymB7CGsFk2G9VLXONKD9G7QGMM+4=
@@ -592,7 +594,6 @@ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8=
github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg=
github.com/libp2p/go-cidranger v1.1.0 h1:ewPN8EZ0dd1LSnrtuwd4709PXVcITVeuwbag38yPW7c=

View File

@@ -1,56 +0,0 @@
package app
import (
"github.com/cybriq/proc/pkg/cmds"
)
type App struct {
*cmds.Command
launch *cmds.Command
runArgs []string
cmds.Envs
}
func New(cmd *cmds.Command, args []string) (a *App, err error) {
var app App
app.Command = cmd
// Add the default configuration items for datadir/configfile
cmds.GetConfigBase(cmd.Configs, cmd.Name, false)
// Add the help function
cmd.AddCommand(cmds.Help())
// We first parse the CLI args, in case config file location has been
// specified
if app.launch, _, err = app.Command.ParseCLIArgs(args); log.E.Chk(err) {
return
}
if err = cmd.LoadConfig(); log.E.Chk(err) {
return
}
app.Command, err = cmds.Init(cmd, nil)
// Load the environment variables
app.Envs = cmd.GetEnvs()
if err = app.Envs.LoadFromEnvironment(); log.E.Chk(err) {
return
}
// This is done again, to ensure the effect of CLI args take precedence
if app.launch, app.runArgs, err = app.Command.ParseCLIArgs(args); log.E.Chk(err) {
return
}
return &app, nil
}
func (a *App) Launch() (err error) {
err = a.launch.Entrypoint(a.launch, a.runArgs)
log.E.Chk(err)
return
}