Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/st3iny/ycat
Concatenate multiple YAML files into a single YAML stream and write it to stdout.
https://github.com/st3iny/ycat
cli concatenate rust yaml
Last synced: 8 days ago
JSON representation
Concatenate multiple YAML files into a single YAML stream and write it to stdout.
- Host: GitHub
- URL: https://github.com/st3iny/ycat
- Owner: st3iny
- License: gpl-3.0
- Created: 2022-11-22T20:38:45.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-04T15:03:52.000Z (11 days ago)
- Last Synced: 2024-11-04T16:19:14.456Z (11 days ago)
- Topics: cli, concatenate, rust, yaml
- Language: Rust
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ycat
Concatenate multiple YAML files into a single YAML stream and write it to stdout.
I built this to easily apply Kubernetes manifests in bulk.
### Example
`ycat manifests/*.yaml | kubectl apply -f -`
With a modern shell (e.g. zsh):
`kubectl apply -f <(ycat manifests/*.yaml)`Save a bundled manifest for later use:
`ycat manifest/*.yaml > release.yaml`## Usage
`ycat FILE [FILE ...]`
The concatenated YAML stream is written to stdout and can be piped to another program or a file.
## Build
Requirements:
- Rust compiler (tested with >= 1.68.2, older versions will probably work too)
- CargoRun tests: `cargo test`
Build a debug binary: `cargo build`
Build a release binary: `cargo build --release`
Build and install to `~/.cargo/bin`: `cargo install --path=.`