options

package
v0.0.0-...-88ab25c Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const GitHubTokenEnv = "GITHUB_TOKEN"
View Source
const IgnoreFileBasename typedpath.BaseName = ".meta-check-ignore"

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgParser

type ArgParser func(args []string, procInout cli.ProcessInout) (*Options, error)

func NewBuilder

func NewBuilder(
	detectRootDir RootDirCompletion,
	detectUnityProj UnityProjectDetector,
	buildIgnoredGlobs IgnoredGlobsBuilder,
	validateRootDirAbs RootDirAbsValidator,
	logger logging.Logger,
) ArgParser

type IgnoredGlobsBuilder

type IgnoredGlobsBuilder func(ignoreFilePath typedpath.RawPath, rootDirAbs typedpath.RawPath) ([]globs.Glob, error)

func NewIgnoredGlobsBuilder

func NewIgnoredGlobsBuilder(logger logging.Logger) IgnoredGlobsBuilder

func StubIgnoredPathBuilder

func StubIgnoredPathBuilder(result []globs.Glob, err error) IgnoredGlobsBuilder

type Options

type Options struct {
	Version                   bool
	LogLevel                  logging.Severity
	TargetType                checker.TargetType
	IgnoreDangling            bool
	IgnoreCase                bool
	IgnoreSubmodulesAndNested bool
	IgnoredPaths              []globs.Glob
	RootDirAbs                typedpath.RawPath
}

func ParseArgs

func ParseArgs(args []string, procInout cli.ProcessInout) (*Options, error)

type RootDirAbsValidator

type RootDirAbsValidator func(unsafeRootDir typedpath.RawPath) (typedpath.RawPath, error)

func FakeRootDirValidator

func FakeRootDirValidator(cwd typedpath.RawPath) RootDirAbsValidator

func NewRootDirValidator

func NewRootDirValidator(isDir ostestable.IsDir) RootDirAbsValidator

func StubRootDirValidator

func StubRootDirValidator(path typedpath.RawPath, err error) RootDirAbsValidator

type RootDirCompletion

type RootDirCompletion func() (typedpath.RawPath, error)

func NewRootDirCompletion

func NewRootDirCompletion(gitRevParse git.RevParse, logger logging.Logger) RootDirCompletion

func StubRootDirCompletion

func StubRootDirCompletion(path typedpath.RawPath, err error) RootDirCompletion

type UnityProjectDetector

type UnityProjectDetector func(rootDirAbs typedpath.RawPath) (checker.TargetType, error)

func NewUnityProjectDetector

func NewUnityProjectDetector(logger logging.Logger) UnityProjectDetector

func StubUnityProjectDetector

func StubUnityProjectDetector(result checker.TargetType, err error) UnityProjectDetector

Jump to

Keyboard shortcuts

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