Documentation
¶
Overview ¶
Package config provides commonly shared configuration for the ajfs commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonConfig ¶
type CommonConfig struct {
DbPath string // Path to the database file.
Verbose bool // Output verbose information to Stdout.
Progress bool // Output progression information to Stdout.
Stdout io.Writer // Writer used for standard out
Stderr io.Writer // Writer used for standard error
}
Config used by most of the ajfs commands.
func (*CommonConfig) ProgressPrintln ¶
func (c *CommonConfig) ProgressPrintln(a ...any)
If Progress is enabled then output to Stdout else output using VerbosePrintln.
func (*CommonConfig) VerbosePrintln ¶
func (c *CommonConfig) VerbosePrintln(a ...any)
Write output to Stdout only if verbose is enabled.
type FilterConfig ¶
type FilterConfig struct {
DirIncluder file.MatchPathFn // Determine which directories should be walked
FileIncluder file.MatchPathFn // Determine which files should be walked
DirExcluder file.MatchPathFn // Determine which directories should not be walked
FileExcluder file.MatchPathFn // Determine which files should not be walked
}
Config used to filter paths.
Click to show internal directories.
Click to hide internal directories.