diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 42 |
1 files changed, 22 insertions, 20 deletions
@@ -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 { |
