commandline

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OverRideHelp

func OverRideHelp(fs *flag.FlagSet) *flag.FlagSet

Types

type Option

type Option struct {
	WorkingDir                         string
	TargetDirname                      string
	OutputFilename                     string
	ScanBufferValue                    string
	ScanBuffer                         model.ByteString
	MaskSecretsFlagValue               string
	MaskSecretsFlag                    model.OnOffSwitch
	AllowGitignoreFlagValue            string
	AllowGitignoreFlag                 model.OnOffSwitch
	AdditionallyIgnoreRuleFilenames    string
	AdditionallyIgnoreRuleFilenameList []string
	GitIgnoreRule                      *libgitignore.GitIgnore
	IgnoreDotFileFlagValue             string
	IgnoreDotFileFlag                  model.OnOffSwitch
	PatternRegexpString                string
	PatternRegexp                      *regexp.Regexp
	IncludeExt                         string
	IncludeExtList                     []string
	ExcludeDirRegexpString             string
	ExcludeDirRegexp                   *regexp.Regexp
	ExcludeFileRegexpString            string
	ExcludeFileRegexp                  *regexp.Regexp
	ExcludeExt                         string
	ExcludeExtList                     []string
	ExcludeDir                         string
	ExcludeDirList                     []string
	WithLineNumberFlagValue            string
	WithLineNumberFlag                 model.OnOffSwitch
	OutputFormatValue                  string
	OutputFormat                       model.OutputFormat
	ComplessFlag                       bool
	SkipNonUTF8Flag                    bool
	DeleteCommentsFlag                 bool
	SilentFlag                         bool
	HelpFlag                           bool
	VersionFlag                        bool
	FlagSet                            *flag.FlagSet
}

func GeneralOptParse added in v1.2.0

func GeneralOptParse(args []string) (int, *Option, error)

func (*Option) Normalize

func (cr *Option) Normalize() error

type ServeOption added in v1.2.0

type ServeOption struct {
	RootDir       string
	Port          string
	GeneralOption *Option
}

ServeOption defines options for launching the MCP server

func ServerOptParse added in v1.2.0

func ServerOptParse(args []string) (int, *ServeOption, error)

Jump to

Keyboard shortcuts

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