flcl

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: BSD-2-Clause-Views Imports: 2 Imported by: 0

README

flcl - what if UNIX find had -charset utf-8... wouldn't that be cool?

EXAMPLES

$ find .
.
./.editorconfig
./.envrc
./.envrc.sample
./.git
./.git/COMMIT_EDITMSG
./.git/config
./.git/description
./.git/HEAD
./.git/hooks
...

$ flcl .
.editorconfig
.envrc.sample
.git
.gitignore
.node-version
Makefile
README.md
cmd/flcl/main.go
drbrule.gif
editorconfig.sh
flcl.go
package.json

$ flcl -help
  -charsets string
        Limit results to comma-separated character sets (default "ascii,utf-8")
  -help
        Show usage information
  -version
        Show version information

DOWNLOADS

https://github.com/mcandre/flcl/releases

DOCUMENTATION

https://godoc.org/github.com/mcandre/flcl

RUNTIME REQUIREMENTS

(None)

INSTALL FROM SOURCE

$ go install github.com/mcandre/flcl/cmd/flcl@latest

CONTRIBUTING

For more information on developing flcl itself, see DEVELOPMENT.md.

Documentation

Overview

Package flcl provides a UNIX find-like search capability that can filter by content type.

Index

Constants

View Source
const OriginDir = "/"

OriginDir presents a base case for recursive file walking: the root directory.

View Source
const Version = "0.0.4"

Version is semver.

Variables

This section is empty.

Functions

func FlexibleMatch added in v0.0.4

func FlexibleMatch(ignores gitignore.IgnoreMatcher, root string) bool

FlexibleMatch works around go-gitignore's quite strict directory trailing slash semantics.

func Populate added in v0.0.4

func Populate(visited map[string]bool, gitignores map[string]gitignore.IgnoreMatcher, dir string)

Populate identifies the gitignore patterns to apply for some directory path, falling back on parent directory patterns, when available.

Types

This section is empty.

Directories

Path Synopsis
cmd
flcl command
Package main provides an executable for running content-aware flcl searches, like UNIX find.
Package main provides an executable for running content-aware flcl searches, like UNIX find.

Jump to

Keyboard shortcuts

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