32 lines
787 B
Go
32 lines
787 B
Go
|
/*
|
||
|
Copyright © 2024 NAME HERE <EMAIL ADDRESS>
|
||
|
*/
|
||
|
package cmd
|
||
|
|
||
|
import (
|
||
|
"git.espin.casa/albert/cml04-falcon-system/labeler/app"
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
// labelerCmd represents the labeler command
|
||
|
var labelerCmd = &cobra.Command{
|
||
|
Use: "labeler",
|
||
|
Short: "Label service",
|
||
|
Long: "Label servicce",
|
||
|
Run: app.Run,
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
rootCmd.AddCommand(labelerCmd)
|
||
|
|
||
|
// Here you will define your flags and configuration settings.
|
||
|
|
||
|
// Cobra supports Persistent Flags which will work for this command
|
||
|
// and all subcommands, e.g.:
|
||
|
// labelerCmd.PersistentFlags().String("foo", "", "A help for foo")
|
||
|
|
||
|
// Cobra supports local flags which will only run when this command
|
||
|
// is called directly, e.g.:
|
||
|
// labelerCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
|
||
|
}
|