{"id":20788783,"url":"https://github.com/mgla96/yaml-searcher","last_synced_at":"2025-09-06T11:34:10.035Z","repository":{"id":39629806,"uuid":"445034426","full_name":"Mgla96/yaml-searcher","owner":"Mgla96","description":"command line utility for searching through yaml (like yq)","archived":false,"fork":false,"pushed_at":"2022-05-30T14:09:05.000Z","size":41,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T10:20:51.199Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/Mgla96.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":"2022-01-06T04:00:32.000Z","updated_at":"2024-01-10T06:37:34.000Z","dependencies_parsed_at":"2022-08-28T08:03:11.296Z","dependency_job_id":null,"html_url":"https://github.com/Mgla96/yaml-searcher","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mgla96%2Fyaml-searcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mgla96%2Fyaml-searcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mgla96%2Fyaml-searcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mgla96%2Fyaml-searcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mgla96","download_url":"https://codeload.github.com/Mgla96/yaml-searcher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243132190,"owners_count":20241359,"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":["command-line-utility","yaml"],"created_at":"2024-11-17T15:17:02.443Z","updated_at":"2025-03-12T00:21:39.195Z","avatar_url":"https://github.com/Mgla96.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yaml-searcher\nA command line utility to search through yaml for a specific value. \n\nIt reads yaml from stdin and outputs the value you are searching for.\n\n## Examples\n\nSearch in yaml for result of field `hello.world`\n\n**yaml-file.yaml**\n```yaml\nhello:\n  world: \"output\"\n```\n\nredirect yaml file\n```\n./yaml-searcher hello.world \u003c yaml-file.yaml\n```\n\npipe in yaml file\n```\ncat yaml-file.yaml | ./yaml-searcher hello.world\n```\n\nBoth will return `output`\n\n## Installation\n\n1. Download yaml-searcher\n\n    ```bash\n    curl -L https://github.com/mgla96/yaml-searcher/releases/download/v0.1.5/yaml-searcher \u003e yaml-searcher\n    ```\n\n2. Add execution permissions\n\n    ```bash\n    chmod +x yaml-searcher\n    ```\n\n3. Place in executable PATH or call directly\n\n## Notes / Gotchas\n\n* zsh uses square brackets for globbing/pattern matching\n\n  when passing square brackets in search argument for yaml-searcher, you must either escape them or quote argument\n\n  **yaml-file.yaml**\n  ```yaml\n  hello:\n    - world: \"output\"\n    - world: \"output2\"\n  ```\n\n  **command**\n  ```bash\n  ./yaml-searcher 'hello[0]' \u003c yaml-file.yaml\n  ```\n  ```bash\n  ./yaml-searcher hello\\[0\\] \u003c yaml-file.yaml\n  ```\n  **returns**\n  ```bash\n  world: output\n  ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgla96%2Fyaml-searcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgla96%2Fyaml-searcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgla96%2Fyaml-searcher/lists"}