diff options
| author | Jeff Carr <[email protected]> | 2024-12-18 01:29:07 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-18 01:29:07 -0600 |
| commit | 5c156fa55e2ee7980a6bbfc9a0a7df5b8984aef0 (patch) | |
| tree | 6676861bb505351bd2ab375a7036f0a59ebc14d9 /all.go | |
| parent | 4879befeb3ad89f0357f995413afcab904296599 (diff) | |
add --purge to get rid of all notesv0.0.19
Diffstat (limited to 'all.go')
| -rw-r--r-- | all.go | 32 |
1 files changed, 0 insertions, 32 deletions
@@ -1,32 +0,0 @@ -package main - -import ( - "fmt" -) - -// rethink this. do not run on non-master git branches -func doAll() { - if argv.All { - if forge.IsGoWork() { - var warning []string - warning = append(warning, "go-mod-clean --recursive may not work unless you are in ~/go/src") - warning = append(warning, "you can continue anyway, but it hasn't been tested as much.") - simpleStdin(true, warning) - } - var warning []string - warning = append(warning, "go-mod-clean will recreate go.mod and go.sum") - warning = append(warning, "because you have selected --recursive") - warning = append(warning, "this will redo _every_ repo. This is probably fine.") - warning = append(warning, fmt.Sprintf("You have %d total repositories in %s", forge.Repos.Len(), forge.GetGoSrc())) - warning = append(warning, "") - warning = append(warning, "However, this will also, at times, do:") - warning = append(warning, "") - warning = append(warning, "rm -rf ~/go/pkg/") - warning = append(warning, "rm -rf ~/.config/go-build/") - warning = append(warning, "") - warning = append(warning, "Which is also probably fine, but will clear all your build cache and go mod cache") - warning = append(warning, "") - simpleStdin(false, warning) - // purgeGoCaches() - } -} |
