{"id":18643401,"url":"https://github.com/avencera/yamine","last_synced_at":"2025-08-11T21:36:22.210Z","repository":{"id":41863991,"uuid":"382625893","full_name":"avencera/yamine","owner":"avencera","description":"A simple CLI for combining json and yaml files","archived":false,"fork":false,"pushed_at":"2023-11-14T15:26:04.000Z","size":89,"stargazers_count":19,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-02T03:50:42.764Z","etag":null,"topics":["hacktoberfest","json","json-parser","k8s","kubernetes","yaml","yaml-merger"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avencera.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-03T13:45:26.000Z","updated_at":"2023-11-27T05:28:54.000Z","dependencies_parsed_at":"2024-11-07T06:07:03.235Z","dependency_job_id":"a396d305-90a4-4568-984c-7aeb0c5db720","html_url":"https://github.com/avencera/yamine","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/avencera/yamine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avencera%2Fyamine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avencera%2Fyamine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avencera%2Fyamine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avencera%2Fyamine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avencera","download_url":"https://codeload.github.com/avencera/yamine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avencera%2Fyamine/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269962063,"owners_count":24504264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","json","json-parser","k8s","kubernetes","yaml","yaml-merger"],"created_at":"2024-11-07T06:06:55.990Z","updated_at":"2025-08-11T21:36:22.183Z","avatar_url":"https://github.com/avencera.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yamine [![Mean Bean CI](https://github.com/avencera/yamine/workflows/Mean%20Bean%20CI/badge.svg)](https://github.com/avencera/yamine/actions?query=workflow%3A%22Mean+Bean+CI%22)\n\nA simple CLI for combining json and yaml files\n\n## Install\n\nAvailable via Homebrew/Linuxbrew\n\n`brew install avencera/tap/yamine`\n\nOR\n\nInstall from a github release:\n\n`curl -LSfs https://avencera.github.io/yamine/install.sh | sh -s -- --git avencera/yamine`\n\nOR\n\nInstall using cargo:\n\n`cargo install yamine` or `cargo binstall yamine`\n\nOR\n\nDownload a release directly from github: [github.com/avencera/yamine/releases](https://github.com/avencera/yamine/releases)\n\n## Usage\n\n`yamine --help`\n\n```\nCombine JSON/YAML files into a single file\n\nUsage: yamine [OPTIONS] [FILES_OR_FOLDERS]...\n\nArguments:\n  [FILES_OR_FOLDERS]...  File(s) or folder you want to run in\n\nOptions:\n  -i, --stdin            Read from STDIN\n  -d, --depth \u003cDEPTH\u003e    Number of folder depth to recurse into [default: 1]\n  -o, --output \u003cOUTPUT\u003e  Output file name [default: combined.yaml]\n      --dry-run          Default mode\n  -w, --write            Write new output file\n  -s, --stdout           Outputs combined file contents to STDOUT\n  -f, --format \u003cFORMAT\u003e  The format for the output file, defaults to yaml [default: yaml] [possible values: yaml, json-array, json-k8s, json]\n  -h, --help             Print help\n  -V, --version          Print version\n```\n\n## Examples\n\n- Combine all yaml and json files in the current folder and creates `combined.yaml` file\n  - `yamine -w .`\n- Combine all yaml and json files in the current folder and creates a `combined.json` file in `json-k8s` format:\n  - `yamine --write --format json-k8s --output combined.json .`\n- Output the combined file to STDOUT in json format:\n  - `yamine --stdout -f json .`\n- Convert YAML from stdin and output as JSON to stdout\n  - `pbpaste | yamine --stdin --stdout -f json`\n\n## Formats\n\n- `yaml` - a multi document yaml file separated by `---` (a kubernetes multi resource document)\n\n  ```yaml\n  ---\n  apiVersion: traefik.containo.us/v1alpha1\n  kind: IngressRoute\n  ---\n  apiVersion: v1\n  kind: Namespace\n  metadata:\n    name: example\n  ---\n  kind: ServiceAccount\n  apiVersion: v1\n  ---\n  apiVersion: v1\n  kind: Service\n  ---\n  apiVersion: apps/v1\n  kind: Deployment\n  ```\n\n- `json` - a json file with each combined file being an element in the array\n\n  ```json\n  [\n      {\n        \"apiVersion\": \"traefik.containo.us/v1alpha1\",\n        \"kind\": \"IngressRoute\"\n        ...\n      },\n      {\n        \"apiVersion\": \"v1\",\n        \"kind\": \"Namespace\",\n        ...\n      },\n      {\n        \"apiVersion\": \"v1\",\n        \"kind\": \"ServiceAccount\",\n        ...\n      },\n      {\n        \"apiVersion\": \"v1\",\n        \"kind\": \"Service\",\n        ...\n      },\n  ]\n  ```\n\n- `json-k8s` - a kubernetes multi resource json document ex:\n\n  ```json\n  {\n    \"kind\": \"List\",\n    \"apiVersion\": \"v1\",\n    \"items\": [\n      {\n        \"apiVersion\": \"traefik.containo.us/v1alpha1\",\n        \"kind\": \"IngressRoute\"\n        ...\n      },\n      {\n        \"apiVersion\": \"v1\",\n        \"kind\": \"Namespace\",\n        ...\n      },\n      {\n        \"apiVersion\": \"v1\",\n        \"kind\": \"ServiceAccount\",\n        ...\n      },\n      {\n        \"apiVersion\": \"v1\",\n        \"kind\": \"Service\",\n        ...\n      },\n    ]\n  }\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favencera%2Fyamine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favencera%2Fyamine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favencera%2Fyamine/lists"}