mirror of
https://github.com/outbackdingo/kamaji.git
synced 2026-01-27 18:19:25 +00:00
27 lines
500 B
Go
27 lines
500 B
Go
// Copyright 2022 Clastix Labs
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"k8s.io/apimachinery/pkg/runtime"
|
|
|
|
"github.com/clastix/kamaji/cmd"
|
|
"github.com/clastix/kamaji/cmd/manager"
|
|
"github.com/clastix/kamaji/cmd/migrate"
|
|
)
|
|
|
|
func main() {
|
|
scheme := runtime.NewScheme()
|
|
|
|
root, mgr, migrator := cmd.NewCmd(scheme), manager.NewCmd(scheme), migrate.NewCmd(scheme)
|
|
root.AddCommand(mgr)
|
|
root.AddCommand(migrator)
|
|
|
|
if err := root.Execute(); err != nil {
|
|
os.Exit(1)
|
|
}
|
|
}
|