This commit is contained in:
Thibault "bui" Koechlin 2022-03-10 13:23:21 +01:00 committed by GitHub
parent 0c35263c29
commit 52132ce398
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -209,6 +209,20 @@ cscli dashboard setup -l 0.0.0.0 -p 443 --password <password>
}
cmdDashboard.AddCommand(cmdDashStop)
var cmdDashShowPassword = &cobra.Command{Use: "show-password",
Short: "displays password of metabase.",
Args: cobra.ExactArgs(0),
DisableAutoGenTag: true,
Run: func(cmd *cobra.Command, args []string) {
m := metabase.Metabase{}
if err := m.LoadConfig(metabaseConfigPath); err != nil {
log.Fatal(err)
}
log.Printf("%s", m.Config.Password)
},
}
cmdDashboard.AddCommand(cmdDashShowPassword)
var cmdDashRemove = &cobra.Command{
Use: "remove",
Short: "removes the metabase container.",