summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-16 06:58:11 -0500
committerJeff Carr <[email protected]>2025-10-16 06:58:11 -0500
commite42dc932f0120c06c7e510561783a21e7732c093 (patch)
tree993e320c11d8ca66a19f818f8a588d34fcf98c33 /main.go
parentda24b97a64b960861569ee0fe90488e7f361da3c (diff)
changed forge.Init()v0.7.110
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.go b/main.go
index bf774c6..7885571 100644
--- a/main.go
+++ b/main.go
@@ -23,9 +23,13 @@ var workingRepo *gitpb.Repo
func main() {
auto = prep.Bash3(&argv) // does shell autocomplete with go-args
- forge = forgepb.Init()
-
var err error
+ forge, err = forgepb.Init()
+ if err != nil {
+ log.Info("This tool requires forge")
+ badExit(err)
+ }
+
// attempt to clone, returns *gitpb.Repo
workingRepo, err = clone(argv.Repo)
if err != nil {