forge/doConfig.go

29 lines
481 B
Go
Raw Normal View History

2025-01-06 20:57:52 -06:00
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("")
}