Added post install check (#630)

This commit is contained in:
RoyUP9
2022-01-23 16:52:58 +02:00
committed by GitHub
parent bcea6cdc49
commit 569f8ae143
5 changed files with 323 additions and 54 deletions

20
cli/cmd/check.go Normal file
View File

@@ -0,0 +1,20 @@
package cmd
import (
"github.com/spf13/cobra"
"github.com/up9inc/mizu/cli/telemetry"
)
var checkCmd = &cobra.Command{
Use: "check",
Short: "Check the Mizu installation for potential problems",
RunE: func(cmd *cobra.Command, args []string) error {
go telemetry.ReportRun("check", nil)
runMizuCheck()
return nil
},
}
func init() {
rootCmd.AddCommand(checkCmd)
}