19 lines
352 B
Go
19 lines
352 B
Go
package cmd
|
|
|
|
import (
|
|
"git.red-panda.pet/pandaware/protohacking/x/smoketest"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var smokeTest = &cobra.Command{
|
|
Use: "smoketest",
|
|
Aliases: []string{"p0"},
|
|
Short: "Problem 0: Smoke Test",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
runServer(smoketest.New)
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(smokeTest)
|
|
}
|