Crates.io | nethermit |
lib.rs | nethermit |
version | 0.1.4 |
created_at | 2025-07-08 20:30:40.208242+00 |
updated_at | 2025-07-09 16:59:31.809403+00 |
description | A CLI tool to convert Jsonnet to YAML |
homepage | |
repository | https://gitlab.com/ruivieira/nethermit |
max_upload_size | |
id | 1743518 |
size | 109,165 |
A simple CLI tool to convert Jsonnet files to YAML.
cargo install --path .
The tool accepts input either from a file or from standard input:
# Read from a file
nethermit config.jsonnet > output.yaml
# Read from stdin (pipe)
cat config.jsonnet | nethermit > output.yaml
# Read from stdin (explicit)
nethermit - < config.jsonnet > output.yaml
# Read from stdin (interactive)
nethermit
# Type or paste your Jsonnet code
# Press Ctrl+D (Unix) or Ctrl+Z (Windows) to finish
lib.rs
and main.rs
This project uses Git pre-commit hooks to ensure code quality. The hooks run:
cargo fmt
)cargo clippy
)The hooks are automatically installed when you clone the repository. If you need to install them manually:
git config core.hooksPath .githooks