Added birthdays weekly and birthdays today commands.
This commit is contained in:
parent
7b7e29b6fb
commit
ab0c96b33f
1 changed files with 30 additions and 0 deletions
|
|
@ -43,6 +43,36 @@ func main() {
|
|||
},
|
||||
},
|
||||
Commands: []*cli.Command{
|
||||
{
|
||||
Name: "birthdays",
|
||||
Description: "Birthday management",
|
||||
Commands: []*cli.Command{
|
||||
{
|
||||
Name: "weekly",
|
||||
Description: "Lists the weekly birthdays for this week.",
|
||||
Action: cmdHost.Birthdays().ListWeeklyBirthdays,
|
||||
Flags: []cli.Flag{
|
||||
&cli.Int64Flag{
|
||||
Name: "chatid",
|
||||
Aliases: []string{"c"},
|
||||
Usage: "Specifies the chat ID. Required.",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "today",
|
||||
Description: "Lists birthdays for today.",
|
||||
Action: cmdHost.Birthdays().ListTodaysBirthdays,
|
||||
Flags: []cli.Flag{
|
||||
&cli.Int64Flag{
|
||||
Name: "chatid",
|
||||
Aliases: []string{"c"},
|
||||
Usage: "Specifies the chat ID. Required.",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "chats",
|
||||
Description: "Chats management",
|
||||
|
|
|
|||
Loading…
Reference in a new issue