Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joker1007/amanogawa
Listing GitHub repositories which you starred.
https://github.com/joker1007/amanogawa
Last synced: 2 days ago
JSON representation
Listing GitHub repositories which you starred.
- Host: GitHub
- URL: https://github.com/joker1007/amanogawa
- Owner: joker1007
- License: mit
- Created: 2015-02-05T11:31:17.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-05T18:12:39.000Z (almost 10 years ago)
- Last Synced: 2024-04-25T19:43:39.830Z (7 months ago)
- Language: Ruby
- Homepage:
- Size: 141 KB
- Stars: 33
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Amanogawa
[![Gem Version](https://badge.fury.io/rb/amanogawa.svg)](http://badge.fury.io/rb/amanogawa)Listing GitHub repositories which you starred.
![amanogawa](https://cloud.githubusercontent.com/assets/116996/6059979/231f04be-ad7b-11e4-8f75-03b7a8590a8c.gif)
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'amanogawa'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install amanogawa
## Usage
### Sync
First, sync your starred repositories.
```sh
$ amanogawa --sync -t# or
$ amanogawa --sync -u -p
# or
$ amanogawa --sync # use .netrc (cf. https://github.com/octokit/octokit.rb)
# => Write to ~/.cache/amanogawa.dump
```### Simple Listing
```sh
$ amanogawa
jquense/react-widgets - set of stateless ui widgets for React
geraintluff/uri-templates - JavaScript utility for RFC 6570: URI Templates
ismasan/oat - Adapters-based API serializers with Hypermedia support for Ruby apps.
k0kubun/activerecord-precount - N+1 count query killer for ActiveRecord
ko1/pretty_backtrace - Pretty your exception backtrace.
jhudson8/react-backbone - backbone-aware mixins for react
# ...
```### Fetch current starred and Listing
```sh
$ amanogawa --fetch -t
```### Use Format
```sh
$ amanogawa -f "%f - %u"
jquense/react-widgets - https://api.github.com/repos/jquense/react-widgets
geraintluff/uri-templates - https://api.github.com/repos/geraintluff/uri-templates
ismasan/oat - https://api.github.com/repos/ismasan/oat
k0kubun/activerecord-precount - https://api.github.com/repos/k0kubun/activerecord-precount
ko1/pretty_backtrace - https://api.github.com/repos/ko1/pretty_backtrace
jhudson8/react-backbone - https://api.github.com/repos/jhudson8/react-backbone
```### Format table
```ruby
FORMAT_TABLE = {
"%i" => "id",
"%n" => "name",
"%f" => "full_name",
"%d" => "description",
"%u" => "url",
"%s" => "ssh_url",
"%g" => "git_url",
"%h" => "homepage",
"%C" => "created_at",
"%P" => "pushed_at",
"%U" => "updated_at",
}
```And, convert `%t` to Tab.
## Sample Use Case
```zsh
# .zshrcalias -g ST="amanogawa -f '%f%t%d' | column -t -s ' ' | peco | awk '{print \$1}'"
``````sh
$ ST | xargs hub browse # Select repository by peco and open GitHub page it
$ ST | xargs hub clone # Select repository by peco and clone it
```## Contributing
1. Fork it ( https://github.com/joker1007/amanogawa/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request