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

https://github.com/keidrun/qstackoverflow

Stack Overflow's Search CLI.
https://github.com/keidrun/qstackoverflow

kotlin stackexchange stackoverflow

Last synced: 2 months ago
JSON representation

Stack Overflow's Search CLI.

Awesome Lists containing this project

README

          

# qstackoverflow

[![tests][tests]][tests-url]
[![coverage][cover]][cover-url]

Stack Overflow's Search CLI.

## Description
Provide the 'sos' command to search the stack overflow's title.

For example, if you want to search how to use kotlin, type the following command:
```
$ sos 'how to use kotlin'
```

## Install
```
$ curl -fsSL https://raw.githubusercontent.com/keidrun/qstackoverflow/master/install | bash
```

## Usage
```
$ sos -h
usage: sos [title] [option...]
-c,--csv show csv format
-f,--fromdate set a "fromdate" parameter, a format must be
"yyyy-MM-dd"
-g,--tagged set a "tagged" parameter.
-h,--help show help
-l,--lang access the language's site, "en"(default) or
"ja"
-max,--maxdate set a "max" date parameter, a format must be
"yyyy-MM-dd"
-min,--mindate set a "min" date parameter, a format must be
"yyyy-MM-dd"
-n,--notagged set a "notagged" parameter
-o,--order set a "order" parameter, "desc"(default) or
"asc"
-p,--page set a "page" parameter
-r,--raw show raw json
-s,--sort set a "sort" parameter, "activity"(default) or
"votes" or "creation" or "relevance"
-t,--todate set a "todate" parameter, a format must be
"yyyy-MM-dd"
-v,--verbose show verbose
-z,--pagesize set a "pagesize" parameter
```

In detail, see [the stackexchange's search api](https://api.stackexchange.com/docs/search "search").

## Uninstall
```
$ cd qstackoverflow
$ ./uninstall
```

[tests]:https://travis-ci.org/keidrun/qstackoverflow.svg?branch=master
[tests-url]:https://travis-ci.org/keidrun/qstackoverflow

[cover]:https://codecov.io/gh/keidrun/qstackoverflow/branch/master/graph/badge.svg
[cover-url]:https://codecov.io/gh/keidrun/qstackoverflow