Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 18:23:11 +08:00
commit d36eeec1dc
7 changed files with 678 additions and 0 deletions

37
commands/stdin.md Normal file
View 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.