Documentation
¶
Index ¶
- Variables
- func ReadConfig(fs billy.Filesystem) (cfg *config.Config, cdir gp.GardenPath, err error)
- func ReadIgnore(fs billy.Filesystem, dir gp.GardenPath) (ig *ignore.Ignore, err error)
- func ReadIgnoreRecur(fs billy.Filesystem, dir gp.GardenPath) (ig *ignore.Ignore, err error)
- func ReadState(fs billy.Filesystem, isMem bool) (*state.State, error)
- func WriteExampleConfig(fs billy.Filesystem, perm os.FileMode) (bool, error)
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 WriteExampleConfig ¶
Returns true if config file was created
Returns false if config file already exists
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.