summaryrefslogtreecommitdiff
path: root/findConfig.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-24 01:54:33 -0600
committerJeff Carr <[email protected]>2024-12-24 01:54:33 -0600
commitbd332301bea8c53d9ee1fe8da79da3c19176fbf2 (patch)
tree2aff858da422cdc04885f4c7fd14a28319d4c84f /findConfig.go
parentc5fcb2a6c05293cd6e14b3bd1e91237013508d44 (diff)
use subcommands
Diffstat (limited to 'findConfig.go')
-rw-r--r--findConfig.go16
1 files changed, 9 insertions, 7 deletions
diff --git a/findConfig.go b/findConfig.go
index 3586bad..aba8709 100644
--- a/findConfig.go
+++ b/findConfig.go
@@ -5,13 +5,15 @@ import "go.wit.com/log"
// retuns true if nothing was done
func findConfig() bool {
var done bool = false
- if argv.FindMine {
- findConfigMine()
- done = true
- }
- if argv.FindAll {
- findConfigAll()
- done = true
+ if argv.Find != nil {
+ if argv.Find.Mine {
+ findConfigMine()
+ done = true
+ }
+ if argv.Find.All {
+ findConfigAll()
+ done = true
+ }
}
if !done {
findConfigAll()