github.com/zaquestion/lab@v0.25.1/cmd/label.go (about)

     1  package cmd
     2  
     3  import (
     4  	"github.com/spf13/cobra"
     5  )
     6  
     7  var labelCmd = &cobra.Command{
     8  	Use:              "label",
     9  	Short:            "List and search labels",
    10  	PersistentPreRun: labPersistentPreRun,
    11  	Run: func(cmd *cobra.Command, args []string) {
    12  		cmd.Help()
    13  	},
    14  }
    15  
    16  func init() {
    17  	RootCmd.AddCommand(labelCmd)
    18  }