cccmd

package
v1.0.1-rel-02 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 4 Imported by: 0

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)
	},
}

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