config

package
v0.0.1-beta4 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 4 Imported by: 0

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) Errorln

func (c *CommonConfig) Errorln(a ...any)

Write output to Stderr.

func (*CommonConfig) Init

func (c *CommonConfig) Init()

Initialize with defaults.

func (*CommonConfig) Println

func (c *CommonConfig) Println(a ...any)

Write output to Stdout.

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.

Jump to

Keyboard shortcuts

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