repoconcat

package
v0.85.0-pre.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Concat

func Concat(output string, patterns []string, opts ...Options) error

Concat concatenates files matching the given patterns into output.

Patterns use glob syntax with gitignore-style semantics:

  • Patterns without `/` match anywhere (e.g., `build` matches `./build` and `./src/build`).
  • Leading `/` anchors to root (e.g., `/build` matches only `./build`).
  • Trailing `/` means directory (for inclusion: match contents; for exclusion: don't match files of same name).
  • Prefix `!` for negation (e.g., `!*.log` excludes log files).
  • Last match wins.

func MustConcat

func MustConcat(output string, patterns []string, opts ...Options)

MustConcat calls Concat and panics on error.

Patterns use glob syntax with gitignore-style semantics:

  • Patterns without `/` match anywhere (e.g., `build` matches `./build` and `./src/build`).
  • Leading `/` anchors to root (e.g., `/build` matches only `./build`).
  • Trailing `/` means directory (for inclusion: match contents; for exclusion: don't match files of same name).
  • Prefix `!` for negation (e.g., `!*.log` excludes log files).
  • Last match wins.

Types

type Options

type Options struct {
	// If true, suppress file-level logging output.
	Quiet bool
}

Options configures optional behavior for Concat.

Jump to

Keyboard shortcuts

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