{"id":17865794,"url":"https://github.com/ttskch/esa-cli","last_synced_at":"2025-04-02T22:10:53.773Z","repository":{"id":57073388,"uuid":"109385817","full_name":"ttskch/esa-cli","owner":"ttskch","description":"grep(, sed, etc) command for esa","archived":false,"fork":false,"pushed_at":"2018-04-18T06:41:28.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T12:25:01.689Z","etag":null,"topics":["esa-io","grep"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/ttskch.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":"2017-11-03T11:01:14.000Z","updated_at":"2018-04-18T06:41:26.000Z","dependencies_parsed_at":"2022-08-24T14:54:40.695Z","dependency_job_id":null,"html_url":"https://github.com/ttskch/esa-cli","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/ttskch%2Fesa-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttskch%2Fesa-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttskch%2Fesa-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttskch%2Fesa-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ttskch","download_url":"https://codeload.github.com/ttskch/esa-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246899658,"owners_count":20851898,"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":["esa-io","grep"],"created_at":"2024-10-28T09:25:01.177Z","updated_at":"2025-04-02T22:10:53.757Z","avatar_url":"https://github.com/ttskch.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esa-cli\n\n## Requirements\n\n- PHP 7.1.3+\n\n## Installation\n\n```bash\n$ composer create-project ttskch/esa-cli:@dev\n$ cd esa-cli\n$ cp app/parameters.php{.placeholder,}\n$ vi app/parameters.php   # tailor to you env\n$ ln -s $(pwd)/app/esa /usr/local/bin/esa\n```\n\n## Usage\n\n### grep\n\n```bash\n$ esa grep -s 'on:category/subcategory #tag1' -e '^#' -l\ncategory/subcategory/post1:1:# foo\ncategory/subcategory/post1:3:## bar\ncategory/subcategory/post1:5:### baz\ncategory/subcategory/post2:1:# foo\ncategory/subcategory/post2:3:## bar\n\n$ esa grep -h   # see help\n```\n\nLearn about queries for `-s` at https://docs.esa.io/posts/104\n\n### diff\n\nJust print diff url for the post because [esa doesn't provide Revision API yet](https://docs.esa.io/posts/102#%E4%BB%8A%E5%BE%8C%E3%81%AE%E5%AE%9F%E8%A3%85%E4%BA%88%E5%AE%9A).\n\n```bash\n$ esa diff \u003cpost_id\u003e \u003cbase_revision_number\u003e\nhttps://team_name.esa.io/posts/\u003cpost_id\u003e/revisions/compare/\u003ccompare_revision_number\u003e...\u003cbase_revision_number\u003e/diff\n\n$ esa diff -h   # see help\n```\n\n### sed\n\n// todo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttskch%2Fesa-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fttskch%2Fesa-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttskch%2Fesa-cli/lists"}