2 releases

0.1.2 Nov 23, 2024
0.1.1 Nov 19, 2024

#344 in Parser implementations

Download history 286/week @ 2024-11-18 23/week @ 2024-11-25 21/week @ 2024-12-02 21/week @ 2024-12-09

351 downloads per month

GPL-3.0 license

19KB
128 lines

Silos 🔄

Overview

Silos is a lightweight command-line utility for converting between YAML and JSON file formats with ease.

Features

  • Convert YAML to JSON
  • Convert JSON to YAML
  • Support for file input and output
  • Simple and intuitive CLI

Installation

cargo install silos

Usage

Convert YAML to JSON

silos path/to/file.yaml --json [-o output.json]

Convert JSON to YAML

silos path/to/file.json --yaml [-o output.yaml]

Options

  • filepath: Path to the input file (required)
  • --json, -j: Convert to JSON format
  • --yaml, -y: Convert to YAML format
  • --output, -o: Optional output file path (prints to console if not specified)

Requirements

  • Rust
  • Cargo

Dependencies

  • serde
  • serde_json
  • serde_yaml
  • structopt

License

The GNU General Public License v3.0

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss proposed modifications.

Dependencies

~6–15MB
~204K SLoC