INNER CODE UNIT · Go
app
k8up-io/k8up · cmd/k8up/main.go:54
func app() *cli.App {
cli.VersionPrinter = func(_ *cli.Context) {
fmt.Printf("version=%s revision=%s date=%s\n", version, commit, date)
}
compiled, err := time.Parse(time.RFC3339, date)
if err != nil {
compiled = time.Time{}
}
return &cli.App{
Name: "k8up",
Usage: "Kubernetes and OpenShift Backup Operator",
Version: version,
Compiled: compiled,
Copyright: "(c) K8up Authors",
EnableBashCompletion: true,