diff options
| author | Jeff Carr <[email protected]> | 2024-12-24 02:07:58 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-24 02:07:58 -0600 |
| commit | 2b087365f68cb57a7dbebc29ac4f18bece9b554a (patch) | |
| tree | 04a34298254b2eae53e5f6039bc38031da5b9fc7 /main.go | |
| parent | bd332301bea8c53d9ee1fe8da79da3c19176fbf2 (diff) | |
move things into 'find' and 'do' subcommands
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 { |
