cli

package
v0.0.0-...-a7d3217 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Build = func() *cobra.Command {

	cmd := &cobra.Command{
		Use:                   "build",
		DisableFlagsInUseLine: true,
		Short:                 "build fuzzers",
		Run: func(cmd *cobra.Command, args []string) {
			buildRun(
				cmd,
			)
		},
	}

	cmd.Flags().StringArray(fuzzFunctionsFlag, nil, "fuzzing functions which will be builded or fuzzed")
	cmd.Flags().String(workdirFlag, ".", "path to dir which will be used to store work artifacts")
	cmd.Flags().String(rootdirFlag, "", "path to dir with target project")
	cmd.MarkFlagRequired(rootdirFlag)

	cmd.TraverseChildren = true

	return cmd
}()
View Source
var Clean = func() *cobra.Command {

	cmd := &cobra.Command{
		Use:                   "clean",
		DisableFlagsInUseLine: true,
		Short:                 "read sources and generate the code",
		Run: func(cmd *cobra.Command, args []string) {
			cleanRun(
				cmd,
			)
		},
	}

	cmd.Flags().String(workdirFlag, ".", "path to dir which will be used to store work artifacts")

	cmd.TraverseChildren = true

	return cmd
}()
View Source
var Coverage = func() *cobra.Command {

	cmd := &cobra.Command{
		Use:                   "coverage",
		DisableFlagsInUseLine: true,
		Short:                 "build coverage",
		Run: func(cmd *cobra.Command, args []string) {
			coverageRun(
				cmd,
			)
		},
	}

	cmd.Flags().StringArray(fuzzFunctionsFlag, nil, "fuzzing functions which will be builded or fuzzed")
	cmd.Flags().String(workdirFlag, ".", "path to dir which will be used to store work artifacts")
	cmd.Flags().String(rootdirFlag, "", "path to dir with target project")
	cmd.Flags().Int(timeoutFlag, 30, "plato time of coverage increasing")
	cmd.MarkFlagRequired(rootdirFlag)

	cmd.TraverseChildren = true

	return cmd
}()
View Source
var CrashReport = func() *cobra.Command {
	cmd := &cobra.Command{
		Use:                   "crashreport",
		DisableFlagsInUseLine: true,
		Short:                 "generate uniq crash reports for fuzzers",
		Run: func(cmd *cobra.Command, args []string) {
			crashReportRun(cmd)
		},
	}

	cmd.Flags().String(workdirFlag, ".", "path to dir which will be used to store work artifacts")

	cmd.TraverseChildren = true

	return cmd
}()
View Source
var Fuzz = func() *cobra.Command {

	cmd := &cobra.Command{
		Use:                   "fuzz",
		DisableFlagsInUseLine: true,
		Short:                 "run fuzzers",
		Run: func(cmd *cobra.Command, args []string) {
			fuzzRun(
				cmd,
			)
		},
	}

	cmd.Flags().StringArray(fuzzFunctionsFlag, nil, "fuzzing functions which will be builded or fuzzed")
	cmd.Flags().String(workdirFlag, ".", "path to dir which will be used to store work artifacts")
	cmd.Flags().String(rootdirFlag, "", "path to dir with target project")
	cmd.Flags().Int(timeoutFlag, 30, "plato time of coverage increasing")
	cmd.MarkFlagRequired(rootdirFlag)

	cmd.TraverseChildren = true

	return cmd
}()
View Source
var List = func() *cobra.Command {

	cmd := &cobra.Command{
		Use:                   "list",
		DisableFlagsInUseLine: true,
		Short:                 "list fuzzers available to build",
		Run: func(cmd *cobra.Command, args []string) {
			listRun(
				cmd,
			)
		},
	}

	cmd.Flags().String(rootdirFlag, "", "path to dir with target project")
	cmd.MarkFlagRequired(rootdirFlag)

	cmd.TraverseChildren = true

	return cmd
}()

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