factory

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DotatoFileNameConfig = useEnvOrDefault(configFileNameEnv, configFileNameDefault)
	DotatoFileNameIgnore = useEnvOrDefault(ignoreFileNameEnv, ignoreFileNameDefault)
	DotatoDirPath        = getDotatoDirUnsafe()
	DotatoFileNameState  = useEnvOrDefault(stateFileNameEnv, stateFileNameDefault)
	DotatoFilePathState  = filepath.Join(DotatoDirPath, DotatoFileNameState)
	DotatoMaxFSIter      = useEnvOrDefaultInt(maxFSIterEnv, maxFSIterDefault)
	DotatoFileNames      = map[string]bool{
		DotatoFileNameConfig: true,
		DotatoFileNameIgnore: true,
		DotatoFileNameState:  true,
	}
)

Functions

func ReadConfig

func ReadConfig(
	fs billy.Filesystem,
) (
	cfg *config.Config, cdir gp.GardenPath, err error,
)

func ReadIgnore

func ReadIgnore(
	fs billy.Filesystem, dir gp.GardenPath,
) (
	ig *ignore.Ignore, err error,
)

func ReadIgnoreRecur

func ReadIgnoreRecur(
	fs billy.Filesystem, dir gp.GardenPath,
) (
	ig *ignore.Ignore, err error,
)

func ReadState

func ReadState(fs billy.Filesystem, isMem bool) (*state.State, error)

func WriteExampleConfig

func WriteExampleConfig(fs billy.Filesystem, perm os.FileMode) (bool, error)

Returns true if config file was created

Returns false if config file already exists

Types

This section is empty.

Jump to

Keyboard shortcuts

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