Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CcCheckAllCmd = &cobra.Command{ Use: "all", Short: "all : a tool of gomini menu", Long: `This is a gomini cccmd check using Cobra`, Run: func(cmd *cobra.Command, args []string) { if len(cmd.Flags().Args()) > 0 { flag := cmd.Flags().Arg(0) cyclocomplex.FindBeanCycloComplex().CcCheckScan(gconv.Int(flag)) return } cyclocomplex.FindBeanCycloComplex().CcCheckAllScan() }, }
View Source
var CcCheckCmd = &cobra.Command{ Use: "cc", Short: "cc : a tool of gomini menu", Long: `This is a gomini cccmd check using Cobra`, Run: func(cmd *cobra.Command, args []string) { if len(cmd.Flags().Args()) > 0 { flag := cmd.Flags().Arg(0) cyclocomplex.FindBeanCycloComplex().CcCheckScan(gconv.Int(flag)) return } cyclocomplex.FindBeanCycloComplex().CcCheckScan() }, }
View Source
var CcCheckFileCmd = &cobra.Command{ Use: "file", Short: "file filename : a tool of gomini menu", Long: `This is a gomini cccmd check using Cobra`, Run: func(cmd *cobra.Command, args []string) { if len(cmd.Flags().Args()) == 0 { fmt.Println("please enter file ") return } file := cmd.Flags().Arg(0) if len(cmd.Flags().Args()) > 1 { flag := cmd.Flags().Arg(1) cyclocomplex.FindBeanCycloComplex().CcCheckFileScan(file, gconv.Int(flag)) return } cyclocomplex.FindBeanCycloComplex().CcCheckFileScan(file) }, }
View Source
var CvCmds = []*cobra.Command{ CcCheckAllCmd, CcCheckCmd, CcCheckFileCmd, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.