{"id":13587341,"url":"https://github.com/jasperes/bash-yaml","last_synced_at":"2025-04-05T08:09:07.350Z","repository":{"id":25836475,"uuid":"99877269","full_name":"jasperes/bash-yaml","owner":"jasperes","description":"Read a yaml file and create variables in bash","archived":false,"fork":false,"pushed_at":"2023-04-13T07:23:05.000Z","size":62,"stargazers_count":369,"open_issues_count":7,"forks_count":121,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-29T07:08:31.467Z","etag":null,"topics":["bash","bash-script","bash-yaml","yaml","yaml-bash","yaml-parser"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/jasperes.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-08-10T03:30:06.000Z","updated_at":"2025-03-27T08:24:02.000Z","dependencies_parsed_at":"2024-01-16T22:17:42.924Z","dependency_job_id":"73860b42-4d37-4650-8072-ed8f60338c80","html_url":"https://github.com/jasperes/bash-yaml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasperes%2Fbash-yaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasperes%2Fbash-yaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasperes%2Fbash-yaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasperes%2Fbash-yaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasperes","download_url":"https://codeload.github.com/jasperes/bash-yaml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305935,"owners_count":20917208,"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":["bash","bash-script","bash-yaml","yaml","yaml-bash","yaml-parser"],"created_at":"2024-08-01T15:06:09.927Z","updated_at":"2025-04-05T08:09:07.332Z","avatar_url":"https://github.com/jasperes.png","language":"Shell","funding_links":[],"categories":["Shell","bash"],"sub_categories":[],"readme":"# bash-yaml\n\n[![Tests](https://github.com/jasperes/bash-yaml/workflows/Tests/badge.svg)](https://github.com/jasperes/bash-yaml/actions?query=workflow%3ATests)\n[![Lint](https://github.com/jasperes/bash-yaml/workflows/Lint/badge.svg)](https://github.com/jasperes/bash-yaml/actions?query=workflow%3ALint)\n\nBash script to read a Yaml file and create variables.\n\n## Working on\n\n- Linux\n- OSX\n\n## Getting Started\n\n### Usage\n\nCopy the `script/yaml.sh` file and import on your script: `source yaml.sh`\n\nThen two functions are viable:\n\n- **parse_yaml**: Output result from the readed yaml file.\n- **create_variables**: Read and create variables based on yaml file passed by argument.\n\nLook at `test` folder to see more.\n\n### Testing\n\nYou can test if your yaml file will be readed correctly based on test folder.\n\n## Known issues\n\n- Object lists must be informed all attributes. Null must be \"attr: \".\n\n## Credits\n\nThis project was started based on @pkuczynski gist. Found it [here](https://gist.github.com/pkuczynski/8665367)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasperes%2Fbash-yaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasperes%2Fbash-yaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasperes%2Fbash-yaml/lists"}