alias

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package alias provides unprefixed names for the find command and its flags.

import find "github.com/gloo-foo/cmd-find/alias"
find.Find("/root", find.Name("*.go"), find.TypeFile)

Index

Constants

View Source
const TypeDir = command.FindTypeDir

TypeDir keeps only directories (-type d).

View Source
const TypeFile = command.FindTypeFile

TypeFile keeps only regular files (-type f).

Variables

This section is empty.

Functions

func Find

func Find(root gloo.File, opts ...any) gloo.Source[[]byte]

Find walks the tree rooted at root and emits every matching path; see the command package for the option set.

Types

type Fs

type Fs = command.FindFs

Fs injects the filesystem to walk (the dependency-injection seam).

type MaxDepth

type MaxDepth = command.FindMaxDepth

MaxDepth limits the walk depth relative to the root (-maxdepth).

type Name

type Name = command.FindName

Name filters entries whose base name matches the glob (-name).

Jump to

Keyboard shortcuts

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