diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 54 |
1 files changed, 26 insertions, 28 deletions
@@ -84,38 +84,36 @@ func main() { // now, do something to all of them (or just print out a table of them) var done bool = false - if argv.Do != nil { - if argv.Do.Dirty { - doCheckDirty() - okExit("") - done = true - } + if argv.Dirty { + doCheckDirty() + okExit("") + done = true + } - if argv.Do.Scan { - doScan() - done = true - } + if argv.Scan { + doScan() + done = true + } - if argv.Do.GitPull { - doGitPull() - done = true - } + if argv.GitPull { + doGitPull() + done = true + } - if argv.Do.GitReset { - doGitReset() - done = true - } + if argv.GitReset { + doGitReset() + done = true + } - if argv.Do.List { - // print out the repos - doCobol() - done = true - } - if argv.Do.PatchSet != "" { - sendDevelDiff(argv.Do.PatchSet) - // sendMasterDiff() - okExit("patches") - } + if argv.List { + // print out the repos + doCobol() + done = true + } + if argv.PatchSet != "" { + sendDevelDiff(argv.PatchSet) + // sendMasterDiff() + okExit("patches") } if argv.ListPatchSet { |
