summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go30
1 files changed, 15 insertions, 15 deletions
diff --git a/argv.go b/argv.go
index 8336d32..5b44cc6 100644
--- a/argv.go
+++ b/argv.go
@@ -14,27 +14,27 @@ type args struct {
DryRun bool `arg:"--dry-run" help:"show what would be run"`
Recursive bool `arg:"--recursive" default:"false" help:"resursively clone all dependencies"`
Pull bool `arg:"--git-pull" default:"false" help:"run 'git pull' on all your repos"`
+ Build bool `arg:"--build" default:"true" help:"also try to build it"`
+ Install bool `arg:"--install" default:"false" help:"try to install every binary package"`
RedoGoMod bool `arg:"--go-reset" default:"false" help:"remake all the go.sum and go.mod files"`
// 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 `
-go-clone does git clone on go package repositories.
-It uses ~/go/src unless it finds a go.work file in a parent directory.
-
-This will clone the sources for go-clone:
- go-clone go.wit.com/apps/go-clone
+git clone go repositories
-If a go.work file is found, this will auto generate a new go.work file.
-The old work file is saved as go.work.last
- go-clone --auto-work go.wit.com/apps/go-clone
-
-This will recursively clone a package and all the build requirements:
- go-clone --recursive go.wit.com/apps/go-clone
+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
`
}
-
-func (args) Version() string {
- return "go-clone " + VERSION + " Built on " + BUILDTIME
-}