diff options
| author | Jeff Carr <[email protected]> | 2024-03-21 19:43:26 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-03-21 19:43:26 -0500 |
| commit | 7a095d15667b683d310bd82215149bc748fcb9c9 (patch) | |
| tree | ab43457d5ed3de84caa4fdfae43f2be288b3aae6 /argv.go | |
| parent | f09d0fbfa9a9ffb037943fecdab13f0e53212850 (diff) | |
add --recursive
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -7,19 +7,21 @@ package main */ type args struct { - Repo string `arg:"positional" help:"go import path"` - Work bool `arg:"--work" help:"make a work directory"` - NoWork bool `arg:"--no-work" help:"does not make a go.work file"` + Repo string `arg:"positional" help:"go import path"` + Work bool `arg:"--work" help:"make a work directory"` + NoWork bool `arg:"--no-work" help:"do not make or modify the go.work file"` + DryRun bool `arg:"--dry-run" help:"show what would be run"` + Recursive bool `arg:"--recursive" help:"resursively clone all dependencies"` } func (a args) Description() string { return ` -Example usage: "go-clone go.wit.com/apps/go-clone" +This will recursively clone the sources for this app into a work/ directory: -This will pull down the go sources and -the repositories in the go.sum file using git clone` +go-clone --recursive go.wit.com/apps/go-clone +` } func (args) Version() string { - return "go-clone " + VERSION + return "go-clone " + Version } |
