summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-13 02:21:25 -0600
committerJeff Carr <[email protected]>2024-12-13 02:21:25 -0600
commit214865f134363f1bd0465e91c143fc3c2ffdc001 (patch)
treea2423e45d02b3190617d468647782c0c2c81d720 /argv.go
parentc3e3dfd20952acfdf58d018cf16b3c2cd8bc2ae3 (diff)
save and restore from git notes
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/argv.go b/argv.go
index 6161076..707791e 100644
--- a/argv.go
+++ b/argv.go
@@ -7,8 +7,13 @@ package main
var argv args
type args struct {
- Recursive bool `arg:"--recursive" default:"false" help:"clean every repo found in go/src or go.work"`
- Auto bool `arg:"--auto" help:"don't approve via STDIN"`
+ All bool `arg:"--all" default:"false" help:"redo every repo found in go/src or go.work"`
+ Auto bool `arg:"--auto" help:"don't approve via STDIN"`
+ Trim bool `arg:"--trim" default:"true" help:"trim entries from go.sum"`
+ Verbose bool `arg:"--verbose" help:"show more"`
+ Notes bool `arg:"--metadata" help:"save as git metadata (notes)"`
+ Restore bool `arg:"--restore" default:"true" help:"restore from git metadata"`
+ Force bool `arg:"--force" help:"remove the old one"`
}
func (args) Version() string {
@@ -20,6 +25,7 @@ func (a args) Description() string {
go-mod-clean will try to verify your go.* files are using the newest package versions
* Recreate go.* with 'go mod init' and 'go mod tidy'
+* Set your required go in go.mod (default is go1.20
* Check that the most recent master branch versions are used
* Try to trim go.sum of non-existent entries
`