summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/argv.go b/argv.go
index ecbfbd2..8048a83 100644
--- a/argv.go
+++ b/argv.go
@@ -6,17 +6,18 @@ package main
this enables command line options from other packages like 'gui' and 'log'
*/
-type argv struct {
+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,env:DRYRUN" help:"don't actually do the release"`
+ Fix bool `arg:"--fix" help:"run fixGoMod() on startup"`
Reason string `arg:"--reason" help:"tag message"`
DumpVersions bool `arg:"--dump-versions" help:"dump the versions file for go.wit.com"`
Port int `arg:"--port" default:"9419" help:"do fun stuff with curl"`
}
-func (a argv) Description() string {
+func (a args) Description() string {
return `
Example usage:
guireleaser go.wit.com/apps/go-clone --increment --release --dry-run --reason "blerg"
@@ -25,6 +26,6 @@ This will pull down the go sources and
the repositories in the go.sum file using git clone`
}
-func (argv) Version() string {
+func (args) Version() string {
return "guireleaser " + VERSION
}