Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (36 sloc) 976 Bytes
package verify
import (
"github.com/jenkins-x/jx/pkg/cmd/helper"
"github.com/jenkins-x/jx/pkg/cmd/opts"
"github.com/jenkins-x/jx/pkg/cmd/opts/step"
"github.com/spf13/cobra"
)
// StepVerifyPodOptions contains the command line flags
type StepVerifyPodOptions struct {
step.StepOptions
}
// NewCmdStepVerifyPod creates the `jx step verify pod` command
func NewCmdStepVerifyPod(commonOpts *opts.CommonOptions) *cobra.Command {
options := &StepVerifyPodOptions{
StepOptions: step.StepOptions{
CommonOptions: commonOpts,
},
}
cmd := &cobra.Command{
Use: "pod",
Short: "pod [command]",
Run: func(cmd *cobra.Command, args []string) {
options.Cmd = cmd
options.Args = args
err := options.Run()
helper.CheckErr(err)
},
}
cmd.AddCommand(NewCmdStepVerifyPodCount(commonOpts))
cmd.AddCommand(NewCmdStepVerifyPodReady(commonOpts))
return cmd
}
// Run implements this command
func (o *StepVerifyPodOptions) Run() error {
return o.Cmd.Help()
}
You can’t perform that action at this time.