Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ttskch/esa-cli
grep(, sed, etc) command for esa
https://github.com/ttskch/esa-cli
esa-io grep
Last synced: 11 days ago
JSON representation
grep(, sed, etc) command for esa
- Host: GitHub
- URL: https://github.com/ttskch/esa-cli
- Owner: ttskch
- License: mit
- Created: 2017-11-03T11:01:14.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-18T06:41:28.000Z (over 6 years ago)
- Last Synced: 2024-04-27T21:21:11.194Z (6 months ago)
- Topics: esa-io, grep
- Language: PHP
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# esa-cli
## Requirements
- PHP 7.1.3+
## Installation
```bash
$ composer create-project ttskch/esa-cli:@dev
$ cd esa-cli
$ cp app/parameters.php{.placeholder,}
$ vi app/parameters.php # tailor to you env
$ ln -s $(pwd)/app/esa /usr/local/bin/esa
```## Usage
### grep
```bash
$ esa grep -s 'on:category/subcategory #tag1' -e '^#' -l
category/subcategory/post1:1:# foo
category/subcategory/post1:3:## bar
category/subcategory/post1:5:### baz
category/subcategory/post2:1:# foo
category/subcategory/post2:3:## bar$ esa grep -h # see help
```Learn about queries for `-s` at https://docs.esa.io/posts/104
### diff
Just 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).
```bash
$ esa diff
https://team_name.esa.io/posts//revisions/compare/.../diff$ esa diff -h # see help
```### sed
// todo