Metadata-Version: 2.1
Name: full-apply
Version: 0.3.0
Summary: Apply commands to both file contents and paths
Author: smheidrich
Author-email: smheidrich@weltenfunktion.de
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: typer (>=0.7.0,<0.8.0)
Requires-Dist: yachalk (>=0.1.5,<0.2.0)
Description-Content-Type: text/markdown

# full-apply

Apply commands to both file contents and paths.

## Installation

```bash
pip3 install full-apply
```

## Usage

```console
$ full-apply --help
Usage: full-apply [OPTIONS] CMD PATHS...

  Apply commands to both file contents and paths.

  File paths and contents will be piped into the given shell command's
  standard input and replaced with its output.

  Examples:

  Replace all occurrences of "foo" with "bar" in both paths and file contents
  within the current directory and sub-directories:

    $ full-apply "sed s/foo/bar/g" .

Arguments:
  CMD       shell command to apply  [required]
  PATHS...  paths to apply to (recursively)  [required]

Options:
  --yes / --no-yes        actually apply instead of performing a dry-run
                          [default: no-yes]
  --hidden / --no-hidden  whether to go through "hidden" (dot-prefixed) files
                          [default: no-hidden]
  --help                  Show this message and exit.
```

