Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InfoCmd = &cobra.Command{ Use: "info", Short: "get formatter info", Long: infoLong, 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, Run: func(cmd *cobra.Command, args []string) { var err error if 0 >= len(args) { fmt.Println("missing required argument: 'formatter'") cmd.Usage() os.Exit(1) } 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, Run: func(cmd *cobra.Command, args []string) { var err error if 0 >= len(args) { fmt.Println("missing required argument: 'formatter'") cmd.Usage() os.Exit(1) } 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, Run: func(cmd *cobra.Command, args []string) { var err error if 0 >= len(args) { fmt.Println("missing required argument: 'formatter'") cmd.Usage() os.Exit(1) } 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.