summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-04 08:16:42 -0600
committerJeff Carr <[email protected]>2024-11-04 08:16:42 -0600
commit9f7d0343397b0245fa0ba01cf488fa4bcca3bb5c (patch)
treeda6969039b184b246ceb0da5b19804d097e4d4cb /argv.go
parentd0e1372a6e70493debbf6b0595ac3b2cec3c0a2e (diff)
compliles and does stuff
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/argv.go b/argv.go
index 0d7aa25..e012789 100644
--- a/argv.go
+++ b/argv.go
@@ -6,16 +6,17 @@ package main
this enables command line options from other packages like 'gui' and 'log'
*/
-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"`
+type argv 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"`
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 args) Description() string {
+func (a argv) Description() string {
return `
Example usage:
guireleaser go.wit.com/apps/go-clone --increment --release --dry-run --reason "blerg"
@@ -24,6 +25,6 @@ This will pull down the go sources and
the repositories in the go.sum file using git clone`
}
-func (args) Version() string {
+func (argv) Version() string {
return "guireleaser " + VERSION
}