Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
arizon-dread committed Nov 24, 2023
1 parent 0f9aea2 commit 333ffcb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ Is meant to be used either stand alone like:
```bash
split-yaml -f longfile.yaml -o files
```
to split longfile.yaml into multiple files, they will be named $(name)-$(kind).yaml and end up in the files directory (in this case).
Or it can be used when piping output into it like this:
to split longfile.yaml into multiple files, they will be named `$(name)-$(kind).yaml` and end up in the `./files/` directory (in this case).

It can also be used when piping output into it like this:
```bash
kubectl get deploy,svc,configmap,ingress -o yaml | split-yaml -o files -
kubectl get deploy,svc,configmap,ingress -o yaml | split-yaml -o files -f -
```
To split the `kind: List` content into individual files.

Contributing PR's are welcome! If you want to expand it to use real kubernetes objects, I'm open to contributions.
Feel free to reach out with suggestions or issues!

0 comments on commit 333ffcb

Please sign in to comment.