mirror of
https://github.com/davidallendj/opaal.git
synced 2025-12-20 03:27:02 -07:00
Updated imports and dependencies
This commit is contained in:
parent
1e5982763f
commit
b447b0e149
4 changed files with 7 additions and 7 deletions
|
|
@ -4,7 +4,7 @@ import (
|
||||||
opaal "davidallendj/opaal/internal"
|
opaal "davidallendj/opaal/internal"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/davidallendj/go-utils/util"
|
"github.com/davidallendj/go-utils/pathx"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
@ -16,7 +16,7 @@ var configCmd = &cobra.Command{
|
||||||
// create a new config at all args (paths)
|
// create a new config at all args (paths)
|
||||||
for _, path := range args {
|
for _, path := range args {
|
||||||
// check and make sure something doesn't exist first
|
// check and make sure something doesn't exist first
|
||||||
if exists, err := util.PathExists(path); exists || err != nil {
|
if exists, err := pathx.PathExists(path); exists || err != nil {
|
||||||
fmt.Printf("file or directory exists\n")
|
fmt.Printf("file or directory exists\n")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/davidallendj/go-utils/util"
|
"github.com/davidallendj/go-utils/pathx"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -24,7 +24,7 @@ var rootCmd = &cobra.Command{
|
||||||
func initConfig() {
|
func initConfig() {
|
||||||
// load config if found or create a new one
|
// load config if found or create a new one
|
||||||
if configPath != "" {
|
if configPath != "" {
|
||||||
exists, err := util.PathExists(configPath)
|
exists, err := pathx.PathExists(configPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("failed to load config")
|
fmt.Printf("failed to load config")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
|
|
||||||
2
go.mod
2
go.mod
|
|
@ -3,7 +3,7 @@ module davidallendj/opaal
|
||||||
go 1.22.0
|
go 1.22.0
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/davidallendj/go-utils v0.0.0-20240228023108-a3401c328af8
|
github.com/davidallendj/go-utils v0.0.0-20240228033512-fd54787e0e90
|
||||||
github.com/go-chi/chi v1.5.5
|
github.com/go-chi/chi v1.5.5
|
||||||
github.com/go-chi/chi/v5 v5.0.12
|
github.com/go-chi/chi/v5 v5.0.12
|
||||||
github.com/lestrrat-go/jwx v1.2.28
|
github.com/lestrrat-go/jwx v1.2.28
|
||||||
|
|
|
||||||
4
go.sum
4
go.sum
|
|
@ -2,8 +2,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46t
|
||||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
github.com/davidallendj/go-utils v0.0.0-20240228023108-a3401c328af8 h1:2TS/l1tLIJ5Qwh3owCM9kxvnGC186dZK9FllgmlDTXo=
|
github.com/davidallendj/go-utils v0.0.0-20240228033512-fd54787e0e90 h1:WFcUklDav28/vMjXTwGj9fiH953LySvu1WoNY1YqaPU=
|
||||||
github.com/davidallendj/go-utils v0.0.0-20240228023108-a3401c328af8/go.mod h1:dOlDYHzYfiz3Skh133YHRm9IiKxBdkMkvXip54057x8=
|
github.com/davidallendj/go-utils v0.0.0-20240228033512-fd54787e0e90/go.mod h1:m86DMxVAMSau3PdVCkBh56m6HIxzTDvR+opoX/gu9/A=
|
||||||
github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo=
|
github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo=
|
||||||
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs=
|
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs=
|
||||||
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0=
|
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0=
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue