Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var App = &cli.App{ Name: "spidee", Usage: "A command line interface for Discord webhooks", Version: Version, Flags: []cli.Flag{ &cli.IntFlag{ Name: "id", Usage: "webhook id", EnvVars: []string{"SPIDEE_WEBHOOK_ID"}, }, &cli.StringFlag{ Name: "token", Usage: "webhook token", EnvVars: []string{"SPIDEE_WEBHOOK_TOKEN"}, }, }, Before: func(c *cli.Context) error { client := *webhook.New(discord.WebhookID(c.Int("id")), c.String("token")) var ( sendCommand = command.SendCommand(client) editCommand = command.EditCommand(client) deleteCommand = command.DeleteCommand(client) ) c.App.Commands = []*cli.Command{ &sendCommand, &editCommand, &deleteCommand, } return nil }, }
View Source
var Version string
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.