29 lines
481 B
Go
29 lines
481 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"go.wit.com/log"
|
||
|
)
|
||
|
|
||
|
func doConfig() {
|
||
|
if argv.Config.Delete != "" {
|
||
|
me.forge.DeleteByGoPath(argv.Config.Delete)
|
||
|
me.forge.SetConfigSave(true)
|
||
|
okExit("")
|
||
|
}
|
||
|
|
||
|
if argv.Config.Fix != nil {
|
||
|
log.Info("todo")
|
||
|
okExit("")
|
||
|
}
|
||
|
if argv.Config.Register != "" {
|
||
|
if err := doRegister(argv.Config.Register); err == nil {
|
||
|
okExit("attempting to register " + argv.Config.Register)
|
||
|
} else {
|
||
|
badExit(err)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
me.forge.ConfigPrintTable()
|
||
|
okExit("")
|
||
|
}
|