Renamed statootstics to mastotool

This commit is contained in:
Christian Muehlhaeuser 2019-08-11 04:12:37 +02:00
parent eb3901a8c9
commit 637053214c
No known key found for this signature in database
GPG Key ID: 3CF9FA45CA1EBB7E
4 changed files with 13 additions and 13 deletions

2
.gitignore vendored
View File

@ -15,4 +15,4 @@
*.json *.json
# Binary # Binary
statootstics mastotool

View File

@ -1,5 +1,5 @@
statootstics mastotool
============ =========
Mastodon Statistics Generator Mastodon Statistics Generator
@ -8,15 +8,15 @@ Mastodon Statistics Generator
Make sure you have a working Go environment (Go 1.8 or higher is required). Make sure you have a working Go environment (Go 1.8 or higher is required).
See the [install instructions](http://golang.org/doc/install.html). See the [install instructions](http://golang.org/doc/install.html).
To install statootstics, simply run: To install mastotool, simply run:
go get github.com/muesli/statootstics go get github.com/muesli/mastotool
## Usage ## Usage
``` ```
$ statootstics -help $ mastotool -help
Usage of ./statootstics: Usage of ./mastotool:
-columns int -columns int
displays tables with N columns (default 80) displays tables with N columns (default 80)
-config string -config string
@ -30,7 +30,7 @@ Usage of ./statootstics:
## Example ## Example
``` ```
$ statootstics $ mastotool
Which instance to connect to: https://mastodon.social Which instance to connect to: https://mastodon.social
Username (email): some_user@domain.tld Username (email): some_user@domain.tld
Password: ******** Password: ********
@ -94,6 +94,6 @@ Another tag
## Development ## Development
[![GoDoc](https://godoc.org/github.com/golang/gddo?status.svg)](https://godoc.org/github.com/muesli/statootstics) [![GoDoc](https://godoc.org/github.com/golang/gddo?status.svg)](https://godoc.org/github.com/muesli/mastotool)
[![Build Status](https://travis-ci.org/muesli/statootstics.svg?branch=master)](https://travis-ci.org/muesli/statootstics) [![Build Status](https://travis-ci.org/muesli/mastotool.svg?branch=master)](https://travis-ci.org/muesli/mastotool)
[![Go ReportCard](http://goreportcard.com/badge/muesli/statootstics)](http://goreportcard.com/report/muesli/statootstics) [![Go ReportCard](http://goreportcard.com/badge/muesli/mastotool)](http://goreportcard.com/report/muesli/mastotool)

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/muesli/statootstics module github.com/muesli/mastotool
require ( require (
github.com/gorilla/websocket v1.4.0 // indirect github.com/gorilla/websocket v1.4.0 // indirect

View File

@ -29,7 +29,7 @@ var (
func registerApp(config *Config) (string, error) { func registerApp(config *Config) (string, error) {
app, err := mastodon.RegisterApp(context.Background(), &mastodon.AppConfig{ app, err := mastodon.RegisterApp(context.Background(), &mastodon.AppConfig{
Server: config.Value("instance").(string), Server: config.Value("instance").(string),
ClientName: "statootstics", ClientName: "mastotool",
Scopes: "read", Scopes: "read",
Website: "", Website: "",
}) })