diff options
| author | Jeff Carr <[email protected]> | 2024-12-02 08:45:13 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-02 08:45:13 -0600 |
| commit | e9ecf2ed7e82fafeb3c0a31ad312de2d2cde7344 (patch) | |
| tree | cddcfac1a101988e31bdfbe42d18102418e85792 /argv.go | |
| parent | 1c8815685b1a12e6d9856ef90b6c8d7f243c0744 (diff) | |
man this doesn't work right
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 } |
