Add logging

This commit is contained in:
2022-09-10 00:09:09 +02:00
parent 8ceb4452f9
commit af142c4b09
9 changed files with 170 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
package commands
import "github.com/spf13/cobra"
func CreateKrakenCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "krakenserver",
Short: "A brief description of your application",
Long: `A longer description that spans multiple lines and likely contains
examples and usage of using your application. For example:
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
// Uncomment the following line if your bare application
// has an action associated with it:
// Run: func(cmd *cobra.Command, args []string) { },
}
cmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
return cmd
}