equal
deleted
inserted
replaced
1 // Copyright © 2018 Mikael Berthe <mikael@lilotux.net> |
1 // Copyright © 2018-2023 Mikael Berthe <mikael@lilotux.net> |
2 // |
2 // |
3 // Licensed under the MIT license. |
3 // Licensed under the MIT license. |
4 // Please see the LICENSE file is this directory. |
4 // Please see the LICENSE file is this directory. |
5 |
5 |
6 package cmd |
6 package cmd |
8 import ( |
8 import ( |
9 "os" |
9 "os" |
10 |
10 |
11 "github.com/spf13/cobra" |
11 "github.com/spf13/cobra" |
12 |
12 |
13 "github.com/McKael/madon/v2" |
13 "github.com/McKael/madon/v3" |
14 ) |
14 ) |
15 |
15 |
16 var emojiOpts struct { |
16 var emojiOpts struct { |
17 // Used for several subcommands to limit the number of results |
17 // Used for several subcommands to limit the number of results |
18 limit, keep uint |
18 limit, keep uint |
19 //sinceID, maxID int64 |
19 //sinceID, maxID int64 |
20 all bool |
20 all bool |
21 } |
21 } |
22 |
22 |
23 //emojiCmd represents the emoji command |
23 // emojiCmd represents the emoji command |
24 var emojiCmd = &cobra.Command{ |
24 var emojiCmd = &cobra.Command{ |
25 Use: "emojis", |
25 Use: "emojis", |
26 Aliases: []string{"emoji"}, |
26 Aliases: []string{"emoji"}, |
27 Short: "Display server emojis", |
27 Short: "Display server emojis", |
28 RunE: emojiGetRunE, // Defaults to list |
28 RunE: emojiGetRunE, // Defaults to list |