summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-04-15 05:05:27 -0500
committerJeff Carr <[email protected]>2024-04-15 05:05:27 -0500
commitc8aded73947a710e70d582731bdbaf1cb4b2ef11 (patch)
tree8dd28f325946f6b4b8aa71457bd657c1076ac4ea
parent0c8311467b35227c19b9d04302e4782887731d76 (diff)
minor goimport changes
-rw-r--r--Makefile2
-rw-r--r--argv.go12
-rw-r--r--main.go3
3 files changed, 8 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 28d730c..bc93a15 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
VERSION = $(shell git describe --tags)
all: build
- ./guireleaser
+ ./guireleaser --help
single: build
./guireleaser go.wit.com/apps/go-clone --increment --release --reason "testing guireleaser" --dry-run
diff --git a/argv.go b/argv.go
index 52a6e02..c54226e 100644
--- a/argv.go
+++ b/argv.go
@@ -7,11 +7,11 @@ package main
*/
type args struct {
- Repo string `arg:"positional" help:"go import path"`
- Increment bool `arg:"--increment" help:"auto increment"`
- Release bool `arg:"--release" help:"do a release an exit"`
- DryRun bool `arg:"--dry-run" help:"don't actually do the release"`
- Reason string `arg:"--reason" help:"tag message"`
+ Repo string `arg:"positional" help:"go import path"`
+ Increment bool `arg:"--increment" help:"auto increment"`
+ Release bool `arg:"--release" help:"do a release an exit"`
+ DryRun bool `arg:"--dry-run,env:DRYRUN" help:"don't actually do the release"`
+ Reason string `arg:"--reason" help:"tag message"`
}
func (a args) Description() string {
@@ -24,5 +24,5 @@ the repositories in the go.sum file using git clone`
}
func (args) Version() string {
- return "go-clone " + VERSION
+ return "guireleaser " + VERSION
}
diff --git a/main.go b/main.go
index d45509f..ac9959f 100644
--- a/main.go
+++ b/main.go
@@ -4,7 +4,7 @@ import (
"os"
"path/filepath"
- "github.com/alexflint/go-arg"
+ "go.wit.com/dev/alexflint/arg"
"go.wit.com/gui"
"go.wit.com/lib/gui/repolist"
"go.wit.com/lib/gui/shell"
@@ -143,7 +143,6 @@ func main() {
// rescan all the repos
me.repos.View.ScanRepositories()
-
myrepo.Status.MakeRedomod()
myrepo.Status.IncrementRevisionVersion(tmp)
_, err := me.repos.View.CheckValidGoSum(myrepo)