From e9ecf2ed7e82fafeb3c0a31ad312de2d2cde7344 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 2 Dec 2024 08:45:13 -0600 Subject: man this doesn't work right --- argv.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'argv.go') 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 } -- cgit v1.2.3