Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hedzr/awesome-tool

a command-line tool to retrieve the stars of all repos in an awesome-list
https://github.com/hedzr/awesome-tool

List: awesome-tool

awesome awesome-go awesome-list awesome-lists awesomeness cli cmdr command-line-tool golang mkd-preview stars

Last synced: about 2 months ago
JSON representation

a command-line tool to retrieve the stars of all repos in an awesome-list

Awesome Lists containing this project

README

        

# awesome-tool

![Go](https://github.com/hedzr/awesome-tool/workflows/Go/badge.svg)
[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/hedzr/awesome-tool.svg?label=release)](https://github.com/hedzr/awesome-tool/releases)
[![go.dev](https://img.shields.io/badge/go-dev-green)](https://pkg.go.dev/github.com/hedzr/awesome-tool)
[![Docker Pulls](https://img.shields.io/docker/pulls/hedzr/awesome-tool.svg)](https://hub.docker.com/r/hedzr/awesome-tool)

`awesome-tool` is a command-line tool to retrieve the stars of all repos in an awesome-list (such as [awesome-go](https://github.com/avelino/awesome-go).

## Installation

### Release

Download the latest release at GitHub Releases Page, please.

### Homebrew (macOS)

```bash
brew install hedzr/brew/awesome-tool

# Or:
brew tap hedzr/brew
brew install awesome-tool
```

## Usage

```bash
awesome-tool build one \
--name=awesome-go \
--source=https://github.com/avelino/awesome-go \
--work-dir=./output

# The results is stored in:
ls -la ./output/aweesome-go/
# open ./output/aweesome-go/output.md # open it in default browser, such as chrome, ...
```

### Result

The main result is a markdown file `output/awesome-xxx/output.md`, its preview looks like:

![ago-mkd-preview](docs/images/ago-mkd-preview.png)

### Github name and passwd

As running `awesome-tool`, it'll ask for your github account name and password to authorize an access token for Github API. The name and password will be destroy after the token got. But your token will be saved into `$HOME/.asg.stats.token` for the next time, you could always erase the file safely.

The access token is used to request [Github API v3](https://developer.github.com/v3/) and [v4](https://developer.github.com/v4/).

### Contributors is 0 now

We can't query how many contributors via GitHub API v4, currently.

For saving your querying bandwidth, we ignore this count.

## LICENSE

MIT / Apache 2.0