Documentation
¶
Index ¶
- type Galadh
- type Options
- func UseASCIIGlyphs(b bool) Options
- func UseAllFiles(b bool) Options
- func UseColors(b bool) Options
- func UseDirOnly(b bool) Options
- func UseExcludePattern(pattern string) Options
- func UseHumanReadableSize(b bool) Options
- func UseIgnoreCase(b bool) Options
- func UseIncludePattern(pattern string) Options
- func UseMatchDirs(b bool) Options
- func UseMaxLevel(lvl int) Options
- func UseOutput(writer io.Writer) Options
- func UsePrintFullPath(b bool) Options
- func UseReplaceNonPrintableChars(b bool) Options
- func UseSize(b bool) Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Galadh ¶
type Galadh struct {
// contains filtered or unexported fields
}
Galadh is simple clone of the posix tree command.
type Options ¶
type Options func(g *Galadh)
Options is a function that configures the Galadh instance.
func UseASCIIGlyphs ¶
UseASCIIGlyphs configures whether to use ASCII glyphs or not.
func UseAllFiles ¶
UseAllFiles configures whether to include also hidden files.
func UseExcludePattern ¶
UseExcludePattern configures which files should be excluded.
func UseHumanReadableSize ¶
UseHumanReadableSize configures whether to display file size in bytes or human readable units.
func UseIgnoreCase ¶
UseIgnoreCase configures whether pattern matching ignore casing.
func UseIncludePattern ¶
UseIncludePattern configures which files should be included.
func UseMatchDirs ¶
UseMatchDirs configures if the pattern matches also applies for directories. If a pattern matches for a directory, then all files and folders in that directory will be printed as well.
func UseMaxLevel ¶
UseMaxLevel configures how deep the recursion of the tree will be. If -1 is used, the recursion has no limits.
func UseOutput ¶
UseOutput configures to print output to the specified writer. This options disables colorization and can't be overriden by UseColors.
func UsePrintFullPath ¶
UsePrintFullPath configures whether the full path should be displayed.
func UseReplaceNonPrintableChars ¶
UseReplaceNonPrintableChars to configure to replace non printable characters.