add search command
This commit is contained in:
parent
05c270286a
commit
eb5f3fd239
2 changed files with 14 additions and 2 deletions
|
@ -3,7 +3,6 @@ package main
|
|||
import (
|
||||
"errors"
|
||||
"log"
|
||||
"strings"
|
||||
|
||||
"github.com/mattn/go-mastodon"
|
||||
"github.com/urfave/cli"
|
||||
|
@ -23,7 +22,7 @@ func cmdToot(c *cli.Context) error {
|
|||
}
|
||||
toot = string(text)
|
||||
} else {
|
||||
toot = strings.Join(c.Args().Tail(), " ")
|
||||
toot = argstr(c)
|
||||
}
|
||||
client := c.App.Metadata["client"].(*mastodon.Client)
|
||||
_, err := client.PostStatus(&mastodon.Toot{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue