package cmd import ( "github.com/runningwater/gohub/pkg/console" "github.com/runningwater/gohub/pkg/helpers" "github.com/spf13/cobra" ) var CmdKey = &cobra.Command{ Use: "key", Short: "Generate App key, will print the generated key", Run: runKeyGenerate, Args: cobra.NoArgs, } func runKeyGenerate(cmd *cobra.Command, args []string) { console.Success("---") console.Success("App Key:") console.Success(helpers.RandomString(32)) console.Success("---") console.Warning("please go to .env file to change the APP_KEY option") }