pandastrike / yaml-cli

A simple CLI for querying and updating YAML files
ISC License
86 stars 5 forks source link

Tool should accept stdin input #24

Open ssbarnea opened 7 years ago

ssbarnea commented 7 years ago

seq 3 | yaml set test.yaml number should create a file with this content:

number:
- 1
- 2
- 3 

Mainly what it happens is that each stdin line is treated as an argument. That's a standard behaviour for most CLI tools that accept input.

This is a very important feature as it allows use of UNIX pipes for processing data.