ttskch / esa-cli
esa cli client
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=7.1.3
- doctrine/cache: ^1.6
- pimple/pimple: ^3.2
- polidog/esa-php: ^1.0
- symfony/console: ^4.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.3
- phpmd/phpmd: ^2.6
- phpunit/phpunit: ^5.7 || ^6.0
- squizlabs/php_codesniffer: ^2.8
This package is not auto-updated.
Last update: 2024-11-10 04:53:30 UTC
README
Requirements
- PHP 7.1.3+
Installation
$ 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
$ 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.
$ esa diff <post_id> <base_revision_number> https://team_name.esa.io/posts/<post_id>/revisions/compare/<compare_revision_number>...<base_revision_number>/diff $ esa diff -h # see help
sed
// todo