Initial commit
This commit is contained in:
37
commands/stdin.md
Normal file
37
commands/stdin.md
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
description: Concatenate files from stdin input
|
||||
argument-hint: --stdin
|
||||
---
|
||||
|
||||
Read file paths from stdin and concatenate them.
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
find ... | concat-glob-tool --stdin --output-file FILE [OPTIONS]
|
||||
```
|
||||
|
||||
## Arguments
|
||||
|
||||
- `-s, --stdin`: Read paths from stdin (required)
|
||||
- `-o, --output-file FILE`: Output file path (required)
|
||||
- `--separator TEXT`: Separator text (default: `---`)
|
||||
- `--no-dry-run`: Execute concatenation
|
||||
- `-f, --force`: Overwrite existing file
|
||||
|
||||
## Examples
|
||||
|
||||
```bash
|
||||
# From find command
|
||||
find . -name '*.py' | concat-glob-tool --stdin -o output.txt --no-dry-run
|
||||
|
||||
# From fd command
|
||||
fd -e py | concat-glob-tool --stdin -o output.txt --no-dry-run
|
||||
|
||||
# Filtered with grep
|
||||
find . -name '*.py' | grep -v test | concat-glob-tool --stdin -o output.txt --no-dry-run
|
||||
```
|
||||
|
||||
## Output
|
||||
|
||||
Files concatenated with separators including filenames.
|
||||
Reference in New Issue
Block a user