A project by @draganm
yar (YAML Archiver) is a command-line tool that archives directory contents into a YAML file. It recursively walks through a directory and stores all file contents in a YAML format, where file paths are keys and their contents are values.
go install github.com/draganm/yar@latest# Archive a directory into a YAML file
yar --output output.yaml <directory>
# Using environment variable for output
export YAR_OUTPUT=output.yaml
yar <directory>--output, -o: Output file path (required)- Can also be set via
YAR_OUTPUTenvironment variable
- Can also be set via
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.