Nethermit
A simple CLI tool to convert Jsonnet files to YAML.
Installation
Usage
The tool accepts input either from a file or from standard input:
# Read from a file
# Read from stdin (pipe)
|
# Read from stdin (explicit)
# Read from stdin (interactive)
# Type or paste your Jsonnet code
# Press Ctrl+D (Unix) or Ctrl+Z (Windows) to finish
Features
- Converts Jsonnet files to YAML format
- Supports standard Jsonnet imports
- Accepts input from files or stdin
- Outputs to stdout for easy piping
- Modular library design with separate
lib.rsandmain.rs - Utility functions for file handling
- Clean and maintainable code structure with comprehensive test coverage
- Kubernetes resource management:
- Deploy resources to Kubernetes clusters
- List and manage resource sets
- Delete sets and associated resources
- ConfigMap-based state tracking
Development
Pre-commit Hooks
This project uses Git pre-commit hooks to ensure code quality. The hooks run:
- Code formatting checks (
cargo fmt) - Linting (
cargo clippy) - Build verification
- Unit tests
The hooks are automatically installed when you clone the repository. If you need to install them manually:
Requirements
- Rust 1.70 or later