diff options
| author | Jeff Carr <[email protected]> | 2025-02-22 06:52:50 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-22 06:52:50 -0600 |
| commit | c521620b04473a5a5b3cea826b21d73fed2d2d20 (patch) | |
| tree | 5bd8c7b2777055d4686bb20f63da852384be0409 /argv.go | |
| parent | cc19c8ac8e5b4ce31838895344db442ccffdbac0 (diff) | |
fix build and cleanup old code
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 17 |
1 files changed, 5 insertions, 12 deletions
@@ -12,10 +12,9 @@ type args struct { Repo string `arg:"positional" help:"go import path"` AutoWork bool `arg:"--work" default:"false" help:"recreate the go.work file"` DryRun bool `arg:"--dry-run" help:"show what would be run"` - Recursive bool `arg:"--recursive" default:"false" help:"recursively clone all dependencies"` - Pull bool `arg:"--git-pull" default:"false" help:"run 'git pull'"` - Build bool `arg:"--build" default:"true" help:"try to build it after clone"` - Install bool `arg:"--install" default:"false" help:"try to install it after clone"` + Recursive bool `arg:"--recursive" default:"true" help:"recursively clone all dependencies"` + Build bool `arg:"--build" help:"try to build it after clone"` + Install bool `arg:"--install" help:"try to install it after clone"` Ignore bool `arg:"--ignore" default:"false" help:"ignore weird clone errors from non-standard repos"` // Fetch bool `arg:"--git-fetch" default:"false" help:"run 'git fetch' on all your repos"` } @@ -26,15 +25,9 @@ func (args) Version() string { func (a args) Description() string { return ` -git clone go repositories +git clone go repositories recursively 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 dependencies - 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 + go-clone go.wit.com/apps/go-clone # 'git clone' go-clone ` } |
