Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InfoCmd = &cobra.Command{ Use: "info", Short: "get formatter info", Long: infoLong, PreRun: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) }, Run: func(cmd *cobra.Command, args []string) { var err error var formatter string if 0 < len(args) { formatter = args[0] } err = InfoRun(formatter) if err != nil { fmt.Println(err) os.Exit(1) } }, }
View Source
var PullCmd = &cobra.Command{ Use: "pull", Short: "docker pull a formatter", Long: pullLong, PreRun: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) }, Run: func(cmd *cobra.Command, args []string) { var err error var formatter string if 0 < len(args) { formatter = args[0] } err = PullRun(formatter) if err != nil { fmt.Println(err) os.Exit(1) } }, }
View Source
var StartCmd = &cobra.Command{ Use: "start", Short: "start a formatter", Long: startLong, PreRun: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) }, Run: func(cmd *cobra.Command, args []string) { var err error var formatter string if 0 < len(args) { formatter = args[0] } err = StartRun(formatter) if err != nil { fmt.Println(err) os.Exit(1) } }, }
View Source
var StopCmd = &cobra.Command{ Use: "stop", Short: "stop a formatter", Long: stopLong, PreRun: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) }, Run: func(cmd *cobra.Command, args []string) { var err error var formatter string if 0 < len(args) { formatter = args[0] } err = StopRun(formatter) if err != nil { fmt.Println(err) os.Exit(1) } }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.