INNER CODE UNIT · Go
main
GGP1/kure · migration/v1/main.go:28
func main() {
if err := config.Init(); err != nil {
log.Fatalf("couldn't initialize the configuration: %v", err)
}
dbPath := filepath.Clean(config.GetString("database.path"))
db, err := bolt.Open(dbPath, 0o600, &bolt.Options{Timeout: 200 * time.Millisecond})
if err != nil {
log.Fatalf("couldn't open the database: %v", err)
}
if err := auth.Login(db); err != nil {
log.Fatalf("couldn't log in: %v", err)
}
if err := xorNames(db, os.Stdin); err != nil {
log.Fatalf("couldn't xor names: %v", err)
}