From b447b0e149790a85eac4cbbc427a0abf56d83732 Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Tue, 27 Feb 2024 20:43:10 -0700 Subject: [PATCH] Updated imports and dependencies --- cmd/config.go | 4 ++-- cmd/root.go | 4 ++-- go.mod | 2 +- go.sum | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/config.go b/cmd/config.go index 75068a5..52ff313 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -4,7 +4,7 @@ import ( opaal "davidallendj/opaal/internal" "fmt" - "github.com/davidallendj/go-utils/util" + "github.com/davidallendj/go-utils/pathx" "github.com/spf13/cobra" ) @@ -16,7 +16,7 @@ var configCmd = &cobra.Command{ // create a new config at all args (paths) for _, path := range args { // 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") continue } diff --git a/cmd/root.go b/cmd/root.go index c1fb355..e6b5245 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -5,7 +5,7 @@ import ( "fmt" "os" - "github.com/davidallendj/go-utils/util" + "github.com/davidallendj/go-utils/pathx" "github.com/spf13/cobra" ) @@ -24,7 +24,7 @@ var rootCmd = &cobra.Command{ func initConfig() { // load config if found or create a new one if configPath != "" { - exists, err := util.PathExists(configPath) + exists, err := pathx.PathExists(configPath) if err != nil { fmt.Printf("failed to load config") os.Exit(1) diff --git a/go.mod b/go.mod index f9921a3..4baf6c6 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module davidallendj/opaal go 1.22.0 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/v5 v5.0.12 github.com/lestrrat-go/jwx v1.2.28 diff --git a/go.sum b/go.sum index 2ae2491..4fd2d0f 100644 --- a/go.sum +++ b/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.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 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-20240228023108-a3401c328af8/go.mod h1:dOlDYHzYfiz3Skh133YHRm9IiKxBdkMkvXip54057x8= +github.com/davidallendj/go-utils v0.0.0-20240228033512-fd54787e0e90 h1:WFcUklDav28/vMjXTwGj9fiH953LySvu1WoNY1YqaPU= +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/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=