Skip to content

Commit

Permalink
Merge pull request #179 from homeport/remove/wrap-import
Browse files Browse the repository at this point in the history
Remove usage of `wrap` package
  • Loading branch information
HeavyWombat authored Jan 12, 2025
2 parents 4157324 + da10c6f commit 6a90574
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
15 changes: 1 addition & 14 deletions cmd/yft/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,12 @@ import (
"os"

"github.com/gonvenience/bunt"
"github.com/gonvenience/wrap"
"github.com/homeport/yft/internal/cmd"
)

func main() {
if err := cmd.Execute(); err != nil {
switch ctxErr := err.(type) {
case wrap.ContextError:
bunt.Printf("Red{*Error:*} LightCoral{%s}\n%v\n",
ctxErr.Context(),
ctxErr.Cause(),
)

default:
bunt.Printf("Red{*Error:*}\n%v\n",
err,
)
}

_, _ = bunt.Printf("Red{*Error:*}\n%v\n", err)
os.Exit(1)
}
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ go 1.22.10
require (
github.com/gonvenience/bunt v1.3.5
github.com/gonvenience/neat v1.3.13
github.com/gonvenience/wrap v1.2.0
github.com/gonvenience/ytbx v1.4.4
github.com/onsi/ginkgo/v2 v2.22.2
github.com/onsi/gomega v1.36.2
Expand All @@ -19,6 +18,7 @@ require (
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
github.com/gonvenience/term v1.0.2 // indirect
github.com/gonvenience/text v1.0.7 // indirect
github.com/gonvenience/wrap v1.2.0 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
Expand Down

0 comments on commit 6a90574

Please sign in to comment.