program

package
v0.0.0-...-2cb72f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Commands []interface{}
)

Functions

func RegisterCommands

func RegisterCommands()

Registers all commands to the go-flags parser.

Types

type EchoArgs

type EchoArgs struct {
	ConfigFile string `positional-arg-name:"config" description:"The configuration file"`
	ChannelID  string `positional-arg-name:"channel-id" description:"The ID of the channel to send the message in"`
	Message    string `positional-arg-name:"message" description:"The message to send"`
}

type EchoCommand

type EchoCommand struct {
	Arguments     EchoArgs `positional-args:"true" required:"true"`
	AllowMentions bool     `short:"m" long:"allow-mentions" description:"If set, the message sent will trigger mentions" optional:"true"`
}

func (*EchoCommand) Execute

func (cmd *EchoCommand) Execute(_ []string) error

type GetTokenArgs

type GetTokenArgs struct {
	Email    string `positional-arg-name:"email" description:"The email of the account"`
	Password string `positional-arg-name:"password" description:"The password of the account"`
}

type GetTokenCommand

type GetTokenCommand struct {
	Arguments GetTokenArgs `positional-args:"true" required:"true"`
}

func (*GetTokenCommand) Execute

func (cmd *GetTokenCommand) Execute(args []string) error

type StartBotArgs

type StartBotArgs struct {
	ConfigFile string `positional-arg-name:"config" description:"The configuration file"`
}

type StartBotCommand

type StartBotCommand struct {
	Arguments StartBotArgs `positional-args:"true" required:"true"`
	Database  string       `` /* 132-byte string literal not displayed */
}

func (*StartBotCommand) Execute

func (cmd *StartBotCommand) Execute(args []string) error

type SwapShowsArgs

type SwapShowsArgs struct {
	ConfigFile string `positional-arg-name:"config" description:"The configuration file"`
}

type SwapShowsCommand

type SwapShowsCommand struct {
	Arguments SwapShowsArgs `positional-args:"true" required:"true"`
	Database  string        `` /* 132-byte string literal not displayed */
}

func (*SwapShowsCommand) Execute

func (cmd *SwapShowsCommand) Execute(args []string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL