github.com/zaquestion/lab@v0.25.1/cmd/ci.go (about) 1 package cmd 2 3 import ( 4 "github.com/spf13/cobra" 5 ) 6 7 // Hold --follow and --bridge values that are common to all ci command 8 var ( 9 followBridge bool 10 bridgeName string 11 ) 12 13 // ciCmd represents the ci command 14 var ciCmd = &cobra.Command{ 15 Use: "ci", 16 Short: "Work with GitLab CI pipelines and jobs", 17 } 18 19 func init() { 20 ciCmd.PersistentFlags().Bool("follow", false, "Follow bridge jobs (downstream pipelines) in a multi-projects setup") 21 ciCmd.PersistentFlags().String("bridge", "", "Bridge job (downstream pipeline) name") 22 RootCmd.AddCommand(ciCmd) 23 }