From 66c4285902860ada66afebacc8efdf98d827f890 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 4 Dec 2024 00:36:06 -0600 Subject: update. still doesn't build with go-clone Signed-off-by: Jeff Carr --- args.go | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'args.go') diff --git a/args.go b/args.go index 88fcf53..f408586 100644 --- a/args.go +++ b/args.go @@ -28,3 +28,33 @@ func init() { ERROR = log.NewFlag("ERROR", true, full, short, "toolkit errors") } + +var argv args + +type args struct { + Width float64 `arg:"--width" default:"640" help:"window width"` + Height float64 `arg:"--height" default:"480" help:"window height"` + Filename string `arg:"--filename" help:"what .glsl file to render"` + DryRun bool `arg:"--dry-run" help:"show what would be run"` + GLdrift float32 `arg:"--drift" default:"0.01" help:"how fast things move around"` + // Fetch bool `arg:"--git-fetch" default:"false" help:"run 'git fetch' on all your repos"` +} + +func (args) Version() string { + return "go-clone " + VERSION + " Built on " + BUILDTIME +} + +func (a args) Description() string { + return ` +git clone go repositories + +Examples: + go-clone go.wit.com/apps/go-clone # simply try to git clone this + go-clone --recursive go.wit.com/apps/go-clone # recursively clone all the dependancies + go-clone --auto-work go.wit.com/apps/go-clone # if you are using a go.work file, recreate the go.work file + go-clone --go-reset # recreate every go.mod and go.sum file + go-clone --git-pull # run 'git pull' in every repo + go-clone --build # build every binary package + go-clone --install # install every binary package +` +} -- cgit v1.2.3