MCPcopy Create free account
hub / github.com/bytebase/bytebase / rolloutPreRun

Function rolloutPreRun

action/command/rollout.go:38–49  ·  view source on GitHub ↗
(_ *world.World)

Source from the content-addressed store, hash-verified

36}
37
38func rolloutPreRun(_ *world.World) func(*cobra.Command, []string) error {
39 return func(cmd *cobra.Command, args []string) error {
40 if p := cmd.Parent(); p != nil {
41 if p.PersistentPreRunE != nil {
42 if err := p.PersistentPreRunE(cmd, args); err != nil {
43 return err
44 }
45 }
46 }
47 return nil
48 }
49}
50
51func runRollout(w *world.World) func(command *cobra.Command, _ []string) error {
52 return func(command *cobra.Command, _ []string) error {

Callers 1

NewRolloutCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected