diff options
| author | Jeff Carr <[email protected]> | 2024-11-15 09:29:49 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-15 09:29:49 -0600 |
| commit | f8bef3081c7ca36b2970514401f2871039e99324 (patch) | |
| tree | dc22d6ca6830a46035ceb601a3e12dba7946283b /argv.go | |
| parent | bef6d6c911acacceeef8390c8e8d9d91584f7a61 (diff) | |
add --auto-work option to generate go.work files
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -9,13 +9,13 @@ package main var argv args type args struct { - Repo string `arg:"positional" help:"go import path"` - NoWork bool `arg:"--no-work" default:"true" help:"do not make or modify the go.work file"` - GoSrc bool `arg:"--go-src" default:"true" help:"only work in ~/go/src"` - 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:"--pull" default:"false" help:"run 'git pull' on all your repos"` - // Fetch bool `arg:"--fetch" default:"false" help:"run 'git fetch' on all your repos"` + Repo string `arg:"positional" help:"go import path"` + AutoWork bool `arg:"--auto-work" default:"false" help:"auto recreate the go.work file"` + GoSrc bool `arg:"--go-src" default:"true" help:"only work in ~/go/src"` + 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"` + // Fetch bool `arg:"--git-fetch" default:"false" help:"run 'git fetch' on all your repos"` } func (a args) Description() string { |
