resolvers

package
v0.71.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigurationRunner

func ConfigurationRunner() snake.Runner

func FSRunner

func FSRunner() snake.Runner

func ForAllFilesAtSameTime

func ForAllFilesAtSameTime(ctx context.Context, fls afero.Fs, files []string, cb func(ctx context.Context, fle afero.File) (io.Reader, error)) error

func GetFileOrGlobDir

func GetFileOrGlobDir(ctx context.Context, fs afero.Fs, fle afero.File, glob string) ([]string, error)

Types

type ConfigurationResolver

type ConfigurationResolver struct {
	UseTabs                bool `default:"true" help:"Use tabs instead of spaces"`
	IndentSize             int  `default:"4" help:"Number of spaces or tabs to use for indentation"`
	TrimMultipleEmptyLines bool `default:"true" help:"Trim multiple empty lines"`
}

func (*ConfigurationResolver) Run

type FSResolver

type FSResolver struct {
	Dir  string `usage:"the directory to run in"`
	File string `usage:"the file to read the configuration from"`
}

func (*FSResolver) Run

func (me *FSResolver) Run(ctx context.Context) (afero.Fs, afero.File, error)

Jump to

Keyboard shortcuts

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