summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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 {