add search command
This commit is contained in:
parent
05c270286a
commit
eb5f3fd239
2 changed files with 14 additions and 2 deletions
|
@ -143,6 +143,14 @@ func authenticate(client *mastodon.Client, config *mastodon.Config, file string)
|
|||
return nil
|
||||
}
|
||||
|
||||
func argstr(c *cli.Context) string {
|
||||
a := []string{}
|
||||
for i := 0; i < c.NArg(); i++ {
|
||||
a = append(a, c.Args().Get(i))
|
||||
}
|
||||
return strings.Join(a, " ")
|
||||
}
|
||||
|
||||
func fatalIf(err error) {
|
||||
if err == nil {
|
||||
return
|
||||
|
@ -207,6 +215,11 @@ func run() int {
|
|||
Usage: "show account information",
|
||||
Action: cmdAccount,
|
||||
},
|
||||
{
|
||||
Name: "search",
|
||||
Usage: "search content",
|
||||
Action: cmdSearch,
|
||||
},
|
||||
}
|
||||
app.Run(os.Args)
|
||||
return 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue