{"id":51020776,"url":"https://github.com/berquerant/yasp","last_synced_at":"2026-06-21T16:01:23.405Z","repository":{"id":360204113,"uuid":"1249102359","full_name":"berquerant/yasp","owner":"berquerant","description":"split and validate yaml document","archived":false,"fork":false,"pushed_at":"2026-05-25T13:02:02.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-25T13:34:01.421Z","etag":null,"topics":["go","yaml"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/berquerant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-25T10:59:32.000Z","updated_at":"2026-05-25T13:01:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/berquerant/yasp","commit_stats":null,"previous_names":["berquerant/yasp"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/berquerant/yasp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Fyasp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Fyasp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Fyasp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Fyasp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/berquerant","download_url":"https://codeload.github.com/berquerant/yasp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Fyasp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34616512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"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":["go","yaml"],"created_at":"2026-06-21T16:01:22.612Z","updated_at":"2026-06-21T16:01:23.387Z","avatar_url":"https://github.com/berquerant.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yasp - split and validate yaml document\n\n```\n  yasp [flags] COMMAND...\n\n# Usage by Example\n\n  yasp -i 'id' some_linter \u003c some_manifest\n\nRead yaml from stdin, split into documents, run some_linter for each document.\nA document passed as a file, like some_linter DOCUMENT_FILE.\nDisplay the result if some_linter failed as below:\n\n--- DOCUMENT_ID some_linter\nstdout and stderr of some_linter\n\nDOCUMENT_ID is an id to identify the document, generated by 'id' applied to the document.\n\n  yasp -i 'id' some_linter another_linter \u003c some_manifest\n\nRun some_linter and another_linter for each document.\nA document fails if either of them failed.\n\n  yasp -i 'id' -o verbose some_linter \u003c some_manifest\n\nDisplay the result even if some_linter succeeded.\n\n  yasp -i 'id' -o yaml some_linter \u003c some_manifest\n\nDisplay the result as yaml:\n\n- command: some_linter\n  data: yaml document to be validated\n  err: error message\n  exitcode: exit code of some_linter\n  id: document id\n  stdout: stdout of some_linter\n  stderr: stderr of some_linter\n\nA summary will be displayed at the end:\n\nSummary: x1 document, x2 invalid, x3 processed, x4 failed, x5 passed, x6 denied\n\nmeans\n\n- yasp read x1 documents\n- but x2 documents are broken or no id\n- x3 documents are checked\n- but x4 documents cannot be checked\n- x5 documents are green\n- x6 documents are red\n\nwith -o verbose, like:\n\ndocument.command.some_linter.count x1, document.command.some_linter.denined x2, document.command some_linter.passed x3, document.count x4, document.process.count x5, document.process.denined x6\n\nwith -o yaml, like:\n\n- summary:\n  - metric: document.command.some_linter.count\n    value: x1\n  - metric: document.command.some_linter.denied\n    value: x2\n  - metric: document.command.some_linter.passed\n    value: x3\n  - metric: document.count\n    value: x4\n  - metric: document.process.count\n    value: x5\n  - metric: document.process.denied\n    value: x7\n\n  yasp -k KUSTOMIZE_ROOT -b some_linter\n\nRender kustomization and save it as a file, run some_linter to the file for each kustomization.yaml under KUSTOMIZE_ROOT.\n\n# Exit status\n\n0 if all documents are green.\nOtherwise 1.\n  -b, --bulk                   do not split yaml document\n      --debug                  enable debug log\n      --failfast               fail yasp if a yaml document failed\n      --failfastcmd            fail a yaml document if a check of the document failed\n      --helm string            helm command (default \"helm\")\n  -r, --helmRoot string        directory that contains Chart.yaml\n  -i, --id string              expr-lang expression to generate id to identify a yaml document\n      --k8s                    use k8s id template: apiVersion + \"\u003e\" + kind + \"\u003e\" + (metadata.namespace ?? \"\") + \"\u003e\" + metadata.name\n      --kubectl string         kubectl command (default \"kubectl\")\n  -k, --kustomizeRoot string   directory that contains kustomization.yaml\n  -o, --out value              output mode: text, verbose, yaml, yml\n      --shell string           shell to execute commands (default \"bash\")\n      --success                exit with 0 even if failed\n  -w, --workDir string         change the working directory and disable cleanup\n```\n\n## Install\n\n``` shell\ngo install github.com/berquerant/yasp/cmd/yasp@latest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberquerant%2Fyasp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fberquerant%2Fyasp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberquerant%2Fyasp/lists"}