cli

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ReturnCode - Exit status:
	//  0  if OK,
	//  1  if minor problems (e.g., cannot access subdirectory),
	//  2  if serious trouble (e.g., cannot access command-line argument).
	ReturnCode = 0
)
View Source
var Version = "0.31.2"

Functions

func Dive added in v0.31.2

func Dive(parent string, depth, limit int, infos *util.Slice[*item.FileInfo], errSlice *util.Slice[error], itemFilter *filter.ItemFilter)

Dive performs optimized recursive directory traversal with reduced system calls and improved memory allocation patterns. This implementation is designed to improve performance through batch file information retrieval and better memory pre-allocation.

func MakeErrorStr

func MakeErrorStr(msg string) string

Types

type Err4Exit

type Err4Exit struct{}

Err4Exit used for exiting without error print

func (Err4Exit) Error

func (c Err4Exit) Error() string

Jump to

Keyboard shortcuts

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