Skip to content
This repository was archived by the owner on Mar 3, 2022. It is now read-only.

Commit

Permalink
Merge pull request #32 from KeisukeToyota/feature/rename-project
Browse files Browse the repository at this point in the history
#27 rename project
  • Loading branch information
ksk001100 committed May 11, 2019
2 parents 81bba49 + 2c57d48 commit 005ecea
Show file tree
Hide file tree
Showing 24 changed files with 109 additions and 109 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
toyotter2
toyotter
dist/
10 changes: 5 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
release:
github:
owner: KeisukeToyota
name: toyotter2
name: toyotter
name_template: '{{.Tag}}'
before:
hooks:
- go mod download
brew:
github:
owner: KeisukeToyota
name: homebrew-toyotter2
name: homebrew-toyotter
commit_author:
name: goreleaserbot
email: [email protected]
description: "CUI based Twitter client for Golang"
homepage: "https://github.com/KeisukeToyota/toyotter2"
homepage: "https://github.com/KeisukeToyota/toyotter"
dependencies:
- fzf
install: |
bin.install 'toyotter2'
bin.install 'toyotter'
builds:
- main: main.go
binary: toyotter2
binary: toyotter
goos:
- windows
- darwin
Expand Down
112 changes: 56 additions & 56 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# toyotter2
![](https://img.shields.io/github/stars/KeisukeToyota/toyotter2.svg)
![](https://img.shields.io/github/release/KeisukeToyota/toyotter2.svg)
![](https://img.shields.io/github/issues/KeisukeToyota/toyotter2.svg)
![](https://img.shields.io/github/forks/KeisukeToyota/toyotter2.svg)
![](https://img.shields.io/github/license/KeisukeToyota/toyotter2.svg)
[![Build Status](https://travis-ci.org/KeisukeToyota/toyotter2.svg?branch=master)](https://travis-ci.org/KeisukeToyota/toyotter2)
[![Go Report Card](https://goreportcard.com/badge/github.com/KeisukeToyota/toyotter2)](https://goreportcard.com/report/github.com/KeisukeToyota/toyotter2)
# toyotter
![](https://img.shields.io/github/stars/KeisukeToyota/toyotter.svg)
![](https://img.shields.io/github/release/KeisukeToyota/toyotter.svg)
![](https://img.shields.io/github/issues/KeisukeToyota/toyotter.svg)
![](https://img.shields.io/github/forks/KeisukeToyota/toyotter.svg)
![](https://img.shields.io/github/license/KeisukeToyota/toyotter.svg)
[![Build Status](https://travis-ci.org/KeisukeToyota/toyotter.svg?branch=master)](https://travis-ci.org/KeisukeToyota/toyotter)
[![Go Report Card](https://goreportcard.com/badge/github.com/KeisukeToyota/toyotter)](https://goreportcard.com/report/github.com/KeisukeToyota/toyotter)

CUI based Twitter client made with Golang

Expand All @@ -14,14 +14,14 @@ CUI based Twitter client made with Golang
## Install

```shell
$ go get github.com/KeisukeToyota/toyotter2
$ cp $GOPATH/src/github.com/KeisukeToyota/toyotter2/.env.example ~/.env.toyotter
$ go get github.com/KeisukeToyota/toyotter
$ cp $GOPATH/src/github.com/KeisukeToyota/toyotter/.env.example ~/.env.toyotter
```

In macOS you can install it with Homebrew
```shell
$ brew tap keisuketoyota/homebrew-toyotter2
$ brew install toyotter2
$ brew tap keisuketoyota/homebrew-toyotter
$ brew install toyotter
```

Please set up Twitter key to `~/.env.toyotter`
Expand All @@ -36,84 +36,84 @@ ACCESS_TOKEN_SECRET=xxxxxxxxxxxxxxxxxxxxxxx

### Tweet
```shell
$ toyotter2 tweet "Hello world" #=> Tweet "Hello world"
$ toyotter2 tw "Bye" #=> Tweet "Bye"
$ toyotter2 tweet "Hello world" --image image.jpg #=> Tweet image
$ toyotter2 tw "Hello" -img=image.jpg #=> Tweet image
$ toyotter2 tweet delete 34820348023 #=> Delete the 34820348023 tweet
$ toyotter2 tw d 34820348023 #=> Delete the 34820348023 tweet
$ toyotter2 tweet "Hi" --reply 34820348023 #=> Reply to tweet of 34820348023
$ toyotter2 tw "Bye" --reply 34820348023 #=> Reply to tweet of 34820348023
$ toyotter tweet "Hello world" #=> Tweet "Hello world"
$ toyotter tw "Bye" #=> Tweet "Bye"
$ toyotter tweet "Hello world" --image image.jpg #=> Tweet image
$ toyotter tw "Hello" -img=image.jpg #=> Tweet image
$ toyotter tweet delete 34820348023 #=> Delete the 34820348023 tweet
$ toyotter tw d 34820348023 #=> Delete the 34820348023 tweet
$ toyotter tweet "Hi" --reply 34820348023 #=> Reply to tweet of 34820348023
$ toyotter tw "Bye" --reply 34820348023 #=> Reply to tweet of 34820348023
```

### Timeline
```shell
$ toyotter2 timeline #=> Get timeline(Get 5 by default)
$ toyotter2 timeline --count 30 #=> Get 30 timelines
$ toyotter2 tl -c=20 #=> Get 20 timelines
$ toyotter timeline #=> Get timeline(Get 5 by default)
$ toyotter timeline --count 30 #=> Get 30 timelines
$ toyotter tl -c=20 #=> Get 20 timelines
```

### Search
```shell
$ toyotter2 search --user twitter #=> Get users including "twitter"(Get 5 by default)
$ toyotter2 s --tweet twitter #=> Get users including "twitter"(Get 5 by default)
$ toyotter2 s -u twitter --count 20 #=> Get 20 users including twitter
$ toyotter2 search -tw=twitter -c=30 #=> Get 30 users including twitter
$ toyotter search --user twitter #=> Get users including "twitter"(Get 5 by default)
$ toyotter s --tweet twitter #=> Get users including "twitter"(Get 5 by default)
$ toyotter s -u twitter --count 20 #=> Get 20 users including twitter
$ toyotter search -tw=twitter -c=30 #=> Get 30 users including twitter
```

### Retweet
```shell
$ toyotter2 retweet 34820348023 #=> Retweet tweet of ID 34820348023
$ toyotter2 rt 34820348023 #=> Retweet tweet of ID 34820348023
$ toyotter2 retweet 34820348023 --delete #=> UnRetweet tweet of ID 34820348023
$ toyotter2 rt 34820348023 -d #=> UnRetweet tweet of ID 34820348023
$ toyotter retweet 34820348023 #=> Retweet tweet of ID 34820348023
$ toyotter rt 34820348023 #=> Retweet tweet of ID 34820348023
$ toyotter retweet 34820348023 --delete #=> UnRetweet tweet of ID 34820348023
$ toyotter rt 34820348023 -d #=> UnRetweet tweet of ID 34820348023
```

### Favorite
```shell
$ toyotter2 favorite 34820348023 #=> Favorite tweet of ID 34820348023
$ toyotter2 fav 34820348023 #=> Favorite tweet of ID 34820348023
$ toyotter2 favorite 34820348023 --delete #=> UnFavorite tweet of ID 34820348023
$ toyotter2 fav 34820348023 -d #=> UnFavorite tweet of ID 34820348023
$ toyotter favorite 34820348023 #=> Favorite tweet of ID 34820348023
$ toyotter fav 34820348023 #=> Favorite tweet of ID 34820348023
$ toyotter favorite 34820348023 --delete #=> UnFavorite tweet of ID 34820348023
$ toyotter fav 34820348023 -d #=> UnFavorite tweet of ID 34820348023
```

### Follow
```shell
$ toyotter2 follow TwitterJP #=> Follow @TwitterJP
$ toyotter2 flw TwitterJP #=> Follow @TwitterJP
$ toyotter2 follow TwitterJP --delete #=> UnFollow @TwitterJP
$ toyotter2 flw TwitterJP -d #=> UnFollow @TwitterJP
$ toyotter follow TwitterJP #=> Follow @TwitterJP
$ toyotter flw TwitterJP #=> Follow @TwitterJP
$ toyotter follow TwitterJP --delete #=> UnFollow @TwitterJP
$ toyotter flw TwitterJP -d #=> UnFollow @TwitterJP
```

### Block
```shell
$ toyotter2 block TwitterJP #=> Block @TwitterJP
$ toyotter2 blk TwitterJP #=> Block @TwitterJP
$ toyotter2 block TwitterJP --delete #=> UnBlock @TwitterJP
$ toyotter2 blk TwitterJP -d #=> UnBlock @TwitterJP
$ toyotter2 block --list #=> Get block user list
$ toyotter block TwitterJP #=> Block @TwitterJP
$ toyotter blk TwitterJP #=> Block @TwitterJP
$ toyotter block TwitterJP --delete #=> UnBlock @TwitterJP
$ toyotter blk TwitterJP -d #=> UnBlock @TwitterJP
$ toyotter block --list #=> Get block user list
```

### Mention list
```shell
$ toyotter2 mention #=> Get mentions(Get 5 by default)
$ toyotter2 men #=> Get mentions(Get 5 by default)
$ toyotter2 mention --count 20 #=> Get 20 mentions
$ toyotter2 men -c 20 #=> Get 20 mentions
$ toyotter mention #=> Get mentions(Get 5 by default)
$ toyotter men #=> Get mentions(Get 5 by default)
$ toyotter mention --count 20 #=> Get 20 mentions
$ toyotter men -c 20 #=> Get 20 mentions
```

### Mute
```shell
$ toyotter2 mute TwitterJP #=> Mute @TwitterJP
$ toyotter2 mu TwitterJP #=> Mute @TwitterJP
$ toyotter2 mute TwitterJP --delete #=> UnMute @TwitterJP
$ toyotter2 mu TwitterJP -d #=> UnMute @TwitterJP
$ toyotter mute TwitterJP #=> Mute @TwitterJP
$ toyotter mu TwitterJP #=> Mute @TwitterJP
$ toyotter mute TwitterJP --delete #=> UnMute @TwitterJP
$ toyotter mu TwitterJP -d #=> UnMute @TwitterJP
```

### Help
```shell
$ toyotter2 --help #=> Overall help
$ toyotter2 -h #=> Overall help
$ toyotter2 timeline --help #=> Timeline command help
$ toyotter2 rt -h #=> Retweet command help
$ toyotter --help #=> Overall help
$ toyotter -h #=> Overall help
$ toyotter timeline --help #=> Timeline command help
$ toyotter rt -h #=> Retweet command help
```
8 changes: 4 additions & 4 deletions commands/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/url"

"github.com/ChimeraCoder/anaconda"
"github.com/KeisukeToyota/toyotter2/twitter"
"github.com/KeisukeToyota/toyotter/twitter"
"github.com/urfave/cli"
)

Expand All @@ -15,7 +15,7 @@ func BlockCommand(a *anaconda.TwitterApi, val url.Values) cli.Command {
return cli.Command{
Name: "block",
Aliases: []string{"blk"},
Usage: "toyotter2 block [screenName]",
Usage: "toyotter block [screenName]",
Flags: blockFlags(),
Action: blockAction,
}
Expand All @@ -25,11 +25,11 @@ func blockFlags() []cli.Flag {
return []cli.Flag{
cli.BoolFlag{
Name: "delete, del, d",
Usage: "toyotter2 block [screenName] --delete",
Usage: "toyotter block [screenName] --delete",
},
cli.BoolFlag{
Name: "list, l",
Usage: "toyotter2 block --list",
Usage: "toyotter block --list",
},
}
}
Expand Down
6 changes: 3 additions & 3 deletions commands/favorite.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"

"github.com/ChimeraCoder/anaconda"
"github.com/KeisukeToyota/toyotter2/twitter"
"github.com/KeisukeToyota/toyotter/twitter"
"github.com/urfave/cli"
)

Expand All @@ -16,7 +16,7 @@ func FavoriteCommand(a *anaconda.TwitterApi, val url.Values) cli.Command {
return cli.Command{
Name: "favorite",
Aliases: []string{"fav"},
Usage: "toyotter2 favorite [tweetID]",
Usage: "toyotter favorite [tweetID]",
Flags: favoriteFlags(),
Action: favoriteAction,
}
Expand All @@ -26,7 +26,7 @@ func favoriteFlags() []cli.Flag {
return []cli.Flag{
cli.BoolFlag{
Name: "delete, del, d",
Usage: "toyotter2 favorite [tweetID] --delete",
Usage: "toyotter favorite [tweetID] --delete",
},
}
}
Expand Down
6 changes: 3 additions & 3 deletions commands/follow.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/url"

"github.com/ChimeraCoder/anaconda"
"github.com/KeisukeToyota/toyotter2/twitter"
"github.com/KeisukeToyota/toyotter/twitter"
"github.com/urfave/cli"
)

Expand All @@ -15,7 +15,7 @@ func FollowCommand(a *anaconda.TwitterApi, val url.Values) cli.Command {
return cli.Command{
Name: "follow",
Aliases: []string{"flw"},
Usage: "toyotter2 follow [screenName]",
Usage: "toyotter follow [screenName]",
Flags: followFlags(),
Action: followAction,
}
Expand All @@ -25,7 +25,7 @@ func followFlags() []cli.Flag {
return []cli.Flag{
cli.BoolFlag{
Name: "delete, del, d",
Usage: "toyotter2 follow [screenName] --delete",
Usage: "toyotter follow [screenName] --delete",
},
}
}
Expand Down
6 changes: 3 additions & 3 deletions commands/mention.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/url"

"github.com/ChimeraCoder/anaconda"
"github.com/KeisukeToyota/toyotter2/twitter"
"github.com/KeisukeToyota/toyotter/twitter"
"github.com/urfave/cli"
)

Expand All @@ -15,7 +15,7 @@ func MentionCommand(a *anaconda.TwitterApi, val url.Values) cli.Command {
return cli.Command{
Name: "mention",
Aliases: []string{"men"},
Usage: "toyotter2 mension [option]",
Usage: "toyotter mension [option]",
Flags: mentionFlags(),
Action: mentionAction,
}
Expand All @@ -26,7 +26,7 @@ func mentionFlags() []cli.Flag {
cli.StringFlag{
Name: "count, c",
Value: "5",
Usage: "toyotter2 mension --count 20",
Usage: "toyotter mension --count 20",
},
}
}
Expand Down
6 changes: 3 additions & 3 deletions commands/mute.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/url"

"github.com/ChimeraCoder/anaconda"
"github.com/KeisukeToyota/toyotter2/twitter"
"github.com/KeisukeToyota/toyotter/twitter"
"github.com/urfave/cli"
)

Expand All @@ -15,7 +15,7 @@ func MuteCommand(a *anaconda.TwitterApi, val url.Values) cli.Command {
return cli.Command{
Name: "mute",
Aliases: []string{"mu"},
Usage: "toyotter2 mute [screenName]",
Usage: "toyotter mute [screenName]",
Flags: muteFlags(),
Action: muteAction,
}
Expand All @@ -25,7 +25,7 @@ func muteFlags() []cli.Flag {
return []cli.Flag{
cli.BoolFlag{
Name: "delete, del, d",
Usage: "toyotter2 mute [screenName] --delete",
Usage: "toyotter mute [screenName] --delete",
},
}
}
Expand Down
6 changes: 3 additions & 3 deletions commands/retweet.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"

"github.com/ChimeraCoder/anaconda"
"github.com/KeisukeToyota/toyotter2/twitter"
"github.com/KeisukeToyota/toyotter/twitter"
"github.com/urfave/cli"
)

Expand All @@ -16,7 +16,7 @@ func RetweetCommand(a *anaconda.TwitterApi, val url.Values) cli.Command {
return cli.Command{
Name: "retweet",
Aliases: []string{"rt"},
Usage: "toyotter2 retweet [tweetID]",
Usage: "toyotter retweet [tweetID]",
Flags: retweetFlags(),
Action: retweetAction,
}
Expand All @@ -26,7 +26,7 @@ func retweetFlags() []cli.Flag {
return []cli.Flag{
cli.BoolFlag{
Name: "delete, del, d",
Usage: "toyotter2 retweet [tweetID] --delete",
Usage: "toyotter retweet [tweetID] --delete",
},
}
}
Expand Down
Loading

0 comments on commit 005ecea

Please sign in to comment.