summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-24 02:07:58 -0600
committerJeff Carr <[email protected]>2024-12-24 02:07:58 -0600
commit2b087365f68cb57a7dbebc29ac4f18bece9b554a (patch)
tree04a34298254b2eae53e5f6039bc38031da5b9fc7 /main.go
parentbd332301bea8c53d9ee1fe8da79da3c19176fbf2 (diff)
move things into 'find' and 'do' subcommands
Diffstat (limited to 'main.go')
-rw-r--r--main.go42
1 files changed, 22 insertions, 20 deletions
diff --git a/main.go b/main.go
index 5afa2d7..a732e14 100644
--- a/main.go
+++ b/main.go
@@ -119,30 +119,32 @@ func main() {
// now, do something to all of them (or just print out a table of them)
var done bool = false
- if argv.DoScan {
- doScan()
- done = true
- }
+ if argv.Do != nil {
+ if argv.Do.Scan {
+ doScan()
+ done = true
+ }
- if argv.DoRedoGoMod {
- doRedoGoMod()
- done = true
- }
+ if argv.Do.RedoGoMod {
+ doRedoGoMod()
+ done = true
+ }
- if argv.DoGitPull {
- doGitPull()
- done = true
- }
+ if argv.Do.GitPull {
+ doGitPull()
+ done = true
+ }
- if argv.DoGitReset {
- doGitReset()
- done = true
- }
+ if argv.Do.GitReset {
+ doGitReset()
+ done = true
+ }
- if argv.DoList {
- // print out the repos
- doCobol()
- done = true
+ if argv.Do.List {
+ // print out the repos
+ doCobol()
+ done = true
+ }
}
if argv.DoPatchSet {