diff options
| author | Jeff Carr <[email protected]> | 2025-10-19 04:48:28 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-19 04:48:28 -0500 |
| commit | 867b8dce9ea8f9f22718313691664f1f0e97e4c8 (patch) | |
| tree | d2d45fffa8e106475a09b766b6bf316aff92d56e /argv.struct.go | |
| parent | 2896bf0b1d58b27b331ea437c7c5a7d7318c8e43 (diff) | |
new argv
Diffstat (limited to 'argv.struct.go')
| -rw-r--r-- | argv.struct.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/argv.struct.go b/argv.struct.go new file mode 100644 index 0000000..633b003 --- /dev/null +++ b/argv.struct.go @@ -0,0 +1,14 @@ +package main + +var argv args + +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"` + NonRecursive bool `arg:"--non-recursive" 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"` +} |
