codex

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context)

Execute is the main entry point that runs the root command.

func NewMarkCmd

func NewMarkCmd() *cobra.Command

NewMarkCmd returns the `mark` command to manually annotate false-positives.

func NewRootCmd

func NewRootCmd(ctx context.Context) *cobra.Command

NewRootCmd returns the root command of the CLI application.

func NewScanCmd

func NewScanCmd() *cobra.Command

NewScanCmd returns the `scan` command that analyzes the target source code.

func NewVersionCmd

func NewVersionCmd() *cobra.Command

NewVersionCmd returns the `version` command.

Types

type Flags

type Flags struct {
	Format         string // Output format: json, html, markdown, sarif
	OutputPath     string // Optional path to write report
	EnableAST      bool   // Enable AST-based rule analysis
	EnableSSA      bool   // Enable SSA-based analysis
	EnableTaint    bool   // Enable taint tracking
	IgnoreFile     string // Path to .codexignore file
	DisableBuiltin bool   // Disable built-in rules
}

Flags defines all global flags used by the Codex CLI.

func (*Flags) Bind

func (f *Flags) Bind(flags *pflag.FlagSet)

Bind binds the Flags to a provided FlagSet.

Jump to

Keyboard shortcuts

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