old code from forgotten commit
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
c8aded7394
commit
d0e1372a6e
3
Makefile
3
Makefile
|
@ -6,6 +6,9 @@ all: build
|
|||
single: build
|
||||
./guireleaser go.wit.com/apps/go-clone --increment --release --reason "testing guireleaser" --dry-run
|
||||
|
||||
dump:
|
||||
./guireleaser go.wit.com/apps/go-clone --increment --release --reason "testing guireleaser" --dry-run --dump-versions
|
||||
|
||||
single-really-do-it: build
|
||||
./guireleaser go.wit.com/apps/go-clone --increment --release --reason "testing guireleaser"
|
||||
|
||||
|
|
1
argv.go
1
argv.go
|
@ -12,6 +12,7 @@ type args struct {
|
|||
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"`
|
||||
}
|
||||
|
||||
func (a args) Description() string {
|
||||
|
|
5
main.go
5
main.go
|
@ -6,6 +6,7 @@ import (
|
|||
|
||||
"go.wit.com/dev/alexflint/arg"
|
||||
"go.wit.com/gui"
|
||||
"go.wit.com/lib/gui/gowit"
|
||||
"go.wit.com/lib/gui/repolist"
|
||||
"go.wit.com/lib/gui/shell"
|
||||
"go.wit.com/log"
|
||||
|
@ -66,6 +67,10 @@ func main() {
|
|||
// which should be all the git repositories in ~/go/src & the .config file
|
||||
me.repos = makeRepoView()
|
||||
|
||||
if myargs.DumpVersions {
|
||||
gowit.DumpVersions(me.repos.View)
|
||||
os.Exit(0)
|
||||
}
|
||||
// the left side of the window options
|
||||
globalDisplayOptions(me.mainBox)
|
||||
|
||||
|
|
Loading…
Reference in New Issue