cccmd

package
v1.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2025 License: MulanPSL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CcCheckAllCmd = &cobra.Command{
	Use:   "all",
	Short: "cc all : a tool of goweb menu",
	Long:  `This is a goweb cc 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 cc : a tool of gomini menu",
	Long:  `This is a goweb cc 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: "cc file filename : a tool of goweb menu",
	Long:  `This is a goweb cc 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)
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL