{"id":20066460,"url":"https://github.com/shin1x1/yae","last_synced_at":"2025-05-05T18:32:56.402Z","repository":{"id":57515993,"uuid":"187043575","full_name":"shin1x1/yae","owner":"shin1x1","description":"YAML aliases expander","archived":false,"fork":false,"pushed_at":"2019-05-25T08:22:28.000Z","size":10,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T10:22:18.140Z","etag":null,"topics":["golang","yaml"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shin1x1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-16T14:25:53.000Z","updated_at":"2024-03-26T01:37:15.000Z","dependencies_parsed_at":"2022-08-28T16:50:10.063Z","dependency_job_id":null,"html_url":"https://github.com/shin1x1/yae","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shin1x1%2Fyae","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shin1x1%2Fyae/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shin1x1%2Fyae/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shin1x1%2Fyae/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shin1x1","download_url":"https://codeload.github.com/shin1x1/yae/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224461867,"owners_count":17315116,"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","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":["golang","yaml"],"created_at":"2024-11-13T13:58:30.102Z","updated_at":"2024-11-13T13:58:30.895Z","avatar_url":"https://github.com/shin1x1.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yae - YAML aliases expander\n\n[![Build Status](https://travis-ci.org/shin1x1/yae.svg?branch=master)](https://travis-ci.org/shin1x1/yae)\n\n`yae` is a YAML aliases expander, written by Go.\n\n## Motivation\n\nWhen refactoring a long YAML using anchor/alias, I created it to make sure that the original YAML and the refactored YAML are identical.\n\nBy comparing the original YAML with the refactored YAML output from the `yae` command with `diff`, you can verify that the contents of YAML have not changed.\n\n```\n$ diff \u003c(yae original.yaml) \u003c(yae refactored.yaml)\n```\n\nSince the `yae` command can change the indentation of the list, the sequence of keys, and other parts that are not relevant to the meaning of YAML, the original YAML uses this command to ensure that the diff command does not cause differences in formatting.\n\n## Installation\n\nDownload binary from below link.\n\n\u003chttps://github.com/shin1x1/yae/releases\u003e\n\nYou can install using `go get`.\n\n```\ngo get -u github.com/shin1x1/yae\n```\n\n## Usage\n\nRun the `yae` command with the YAML file path that you want to expand alias as an argument.\n\n```\n$ cat original.yaml\n---\nanchors:\n  items:\n    - \u0026book # anchor\n      name: book\n      price: 100\n\nstocks:\n  - *book # alias\n  - \u003c\u003c: *book # alias with overwrite key\n    price: 200\n\n$ yae src.yaml\nanchors:\n  items:\n  - name: book\n    price: 100\nstocks:\n- name: book\n  price: 100\n- name: book\n  price: 200\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshin1x1%2Fyae","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshin1x1%2Fyae","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshin1x1%2Fyae/lists"}