commandimpls

package
v0.0.0-...-17efaa7 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: BSD-3-Clause Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	// contains filtered or unexported fields
}

Account manages the users account

func NewAccount

func NewAccount(accountLogout *AccountLogout, window *ui.Window) *Account

NewAccount creates a ready-to-use Account command.

func (*Account) Aliases

func (account *Account) Aliases() []string

func (*Account) Execute

func (account *Account) Execute(writer io.Writer, parameters []string)

Execute runs the command piping its output into the supplied writer.

func (*Account) Name

func (account *Account) Name() string

func (*Account) PrintHelp

func (account *Account) PrintHelp(writer io.Writer)

PrintHelp prints a static help page for this command

type AccountLogout

type AccountLogout struct {
	// contains filtered or unexported fields
}

AccountLogout allows logging out of cordless. This clears the token saved in the users folder.

func NewAccountLogout

func NewAccountLogout(restart func(), window *ui.Window) *AccountLogout

NewAccountLogout creates a ready-to-use Logout command.

func (*AccountLogout) Aliases

func (accountLogout *AccountLogout) Aliases() []string

Aliases are a list of aliases for this command. There might be none.

func (*AccountLogout) Execute

func (accountLogout *AccountLogout) Execute(writer io.Writer, parameters []string)

Execute runs the command piping its output into the supplied writer.

func (*AccountLogout) Name

func (accountLogout *AccountLogout) Name() string

Name returns the primary name for this command. This name will also be used for listing the command in the commandlist.

func (*AccountLogout) PrintHelp

func (accountLogout *AccountLogout) PrintHelp(writer io.Writer)

PrintHelp prints a static help page for this command

type DMOpenCmd

type DMOpenCmd struct {
	// contains filtered or unexported fields
}

DMOpenCmd allows to open / create DM channels.

func NewDMOpenCmd

func NewDMOpenCmd(session *discordgo.Session, window *ui.Window) *DMOpenCmd

NewDMOpenCmd creates a ready to use command to open / create DM channels.

func (*DMOpenCmd) Aliases

func (cmd *DMOpenCmd) Aliases() []string

Aliases are a list of aliases for this command. There might be none.

func (*DMOpenCmd) Execute

func (cmd *DMOpenCmd) Execute(writer io.Writer, parameters []string)

Execute runs the command piping its output into the supplied writer.

func (*DMOpenCmd) Name

func (cmd *DMOpenCmd) Name() string

Name returns the primary name for this command. This name will also be used for listing the command in the commandlist.

func (*DMOpenCmd) PrintHelp

func (cmd *DMOpenCmd) PrintHelp(writer io.Writer)

PrintHelp prints a static help page for this command

type FileSend

type FileSend struct {
	// contains filtered or unexported fields
}

FileSend represents the command used to send multiple files to a channel.

func NewFileSendCommand

func NewFileSendCommand(discord *discordgo.Session, window *ui.Window) *FileSend

NewFileSendCommand creates a ready to use FileSend instance.

func (*FileSend) Aliases

func (cmd *FileSend) Aliases() []string

Aliases represents all available aliases this command can be called with.

func (*FileSend) Execute

func (cmd *FileSend) Execute(writer io.Writer, parameters []string)

Execute runs the command piping its output into the supplied writer.

func (*FileSend) Name

func (cmd *FileSend) Name() string

Name represents the main-name of the command.

func (*FileSend) PrintHelp

func (cmd *FileSend) PrintHelp(writer io.Writer)

PrintHelp prints the help for the FileSend command.

type FixLayout

type FixLayout struct {
	// contains filtered or unexported fields
}

FixLayout is the command that allows the user to change the applications layout.

func NewFixLayoutCommand

func NewFixLayoutCommand(window *ui.Window) *FixLayout

NewFixLayoutCommand creates a ready-to-use FixLayout command.

func (*FixLayout) Aliases

func (fixLayout *FixLayout) Aliases() []string

func (*FixLayout) Execute

func (fixLayout *FixLayout) Execute(writer io.Writer, parameters []string)

Execute runs the command piping its output into the supplied writer.

func (*FixLayout) Name

func (fixLayout *FixLayout) Name() string

func (*FixLayout) PrintHelp

func (fixLayout *FixLayout) PrintHelp(writer io.Writer)

PrintHelp prints a static help page for this command

type Friends

type Friends struct {
	// contains filtered or unexported fields
}

Friends is the command for managing discord friends.

func NewFriendsCommand

func NewFriendsCommand(session *discordgo.Session) *Friends

NewFriendsCommand creates a new ready to use friends command instance.

func (*Friends) Aliases

func (f *Friends) Aliases() []string

Aliases returns availabe aliases for this command

func (*Friends) Execute

func (f *Friends) Execute(writer io.Writer, parameters []string)

Execute handles all input for the friends command.

func (*Friends) Name

func (f *Friends) Name() string

Name returns the name of the command.

func (*Friends) PrintHelp

func (f *Friends) PrintHelp(writer io.Writer)

PrintHelp prints the general help page for the friends commands.

type Manual

type Manual struct {
	// contains filtered or unexported fields
}

Manual is the command that displays the application manual.

func NewManualCommand

func NewManualCommand(window *ui.Window) *Manual

NewManualCommand constructs a new usable manual command for the user.

func (*Manual) Aliases

func (manual *Manual) Aliases() []string

func (*Manual) Execute

func (manual *Manual) Execute(writer io.Writer, parameters []string)

Execute runs the command piping its output into the supplied writer.

func (*Manual) Name

func (manual *Manual) Name() string

func (*Manual) PrintHelp

func (manual *Manual) PrintHelp(writer io.Writer)

PrintHelp prints a static help page for this command

type NickSetCmd

type NickSetCmd struct {
	// contains filtered or unexported fields
}

func NewNickSetCmd

func NewNickSetCmd(session *discordgo.Session, clientState commands.ClientState) *NickSetCmd

func (NickSetCmd) Aliases

func (cmd NickSetCmd) Aliases() []string

func (NickSetCmd) Execute

func (cmd NickSetCmd) Execute(writer io.Writer, parameters []string)

func (NickSetCmd) Name

func (cmd NickSetCmd) Name() string

func (NickSetCmd) PrintHelp

func (cmd NickSetCmd) PrintHelp(writer io.Writer)

type ServerCmd

type ServerCmd struct {
	// contains filtered or unexported fields
}

func NewServerCommand

func NewServerCommand(serverJoinCmd *ServerJoinCmd, serverLeaveCmd *ServerLeaveCmd, serverCreateCmd *ServerCreateCmd) *ServerCmd

func (*ServerCmd) Aliases

func (cmd *ServerCmd) Aliases() []string

func (*ServerCmd) Execute

func (cmd *ServerCmd) Execute(writer io.Writer, parameters []string)

func (*ServerCmd) Name

func (cmd *ServerCmd) Name() string

func (*ServerCmd) PrintHelp

func (cmd *ServerCmd) PrintHelp(writer io.Writer)

type ServerCreateCmd

type ServerCreateCmd struct {
	// contains filtered or unexported fields
}

func NewServerCreateCommand

func NewServerCreateCommand(session *discordgo.Session) *ServerCreateCmd

func (*ServerCreateCmd) Aliases

func (cmd *ServerCreateCmd) Aliases() []string

func (*ServerCreateCmd) Execute

func (cmd *ServerCreateCmd) Execute(writer io.Writer, parameters []string)

func (*ServerCreateCmd) Name

func (cmd *ServerCreateCmd) Name() string

func (*ServerCreateCmd) PrintHelp

func (cmd *ServerCreateCmd) PrintHelp(writer io.Writer)

type ServerJoinCmd

type ServerJoinCmd struct {
	// contains filtered or unexported fields
}

func NewServerJoinCommand

func NewServerJoinCommand(window *ui.Window, session *discordgo.Session) *ServerJoinCmd

func (*ServerJoinCmd) Aliases

func (cmd *ServerJoinCmd) Aliases() []string

func (*ServerJoinCmd) Execute

func (cmd *ServerJoinCmd) Execute(writer io.Writer, parameters []string)

func (*ServerJoinCmd) Name

func (cmd *ServerJoinCmd) Name() string

func (*ServerJoinCmd) PrintHelp

func (cmd *ServerJoinCmd) PrintHelp(writer io.Writer)

type ServerLeaveCmd

type ServerLeaveCmd struct {
	// contains filtered or unexported fields
}

func NewServerLeaveCommand

func NewServerLeaveCommand(window *ui.Window, session *discordgo.Session) *ServerLeaveCmd

func (*ServerLeaveCmd) Aliases

func (cmd *ServerLeaveCmd) Aliases() []string

func (*ServerLeaveCmd) Execute

func (cmd *ServerLeaveCmd) Execute(writer io.Writer, parameters []string)

func (*ServerLeaveCmd) Name

func (cmd *ServerLeaveCmd) Name() string

func (*ServerLeaveCmd) PrintHelp

func (cmd *ServerLeaveCmd) PrintHelp(writer io.Writer)

type StatusCmd

type StatusCmd struct {
	// contains filtered or unexported fields
}

func NewStatusCommand

func NewStatusCommand(statusGetCmd *StatusGetCmd, statusSetCmd *StatusSetCmd, statusSetCustomCmd *StatusSetCustomCmd) *StatusCmd

func (*StatusCmd) Aliases

func (cmd *StatusCmd) Aliases() []string

func (*StatusCmd) Execute

func (cmd *StatusCmd) Execute(writer io.Writer, parameters []string)

func (*StatusCmd) Name

func (cmd *StatusCmd) Name() string

func (*StatusCmd) PrintHelp

func (cmd *StatusCmd) PrintHelp(writer io.Writer)

type StatusGetCmd

type StatusGetCmd struct {
	// contains filtered or unexported fields
}

func NewStatusGetCommand

func NewStatusGetCommand(session *discordgo.Session) *StatusGetCmd

func (*StatusGetCmd) Aliases

func (cmd *StatusGetCmd) Aliases() []string

func (*StatusGetCmd) Execute

func (cmd *StatusGetCmd) Execute(writer io.Writer, parameters []string)

func (*StatusGetCmd) Name

func (cmd *StatusGetCmd) Name() string

func (*StatusGetCmd) PrintHelp

func (cmd *StatusGetCmd) PrintHelp(writer io.Writer)

type StatusSetCmd

type StatusSetCmd struct {
	// contains filtered or unexported fields
}

func NewStatusSetCommand

func NewStatusSetCommand(session *discordgo.Session) *StatusSetCmd

func (*StatusSetCmd) Aliases

func (cmd *StatusSetCmd) Aliases() []string

func (*StatusSetCmd) Execute

func (cmd *StatusSetCmd) Execute(writer io.Writer, parameters []string)

func (*StatusSetCmd) Name

func (cmd *StatusSetCmd) Name() string

func (*StatusSetCmd) PrintHelp

func (cmd *StatusSetCmd) PrintHelp(writer io.Writer)

type StatusSetCustomCmd

type StatusSetCustomCmd struct {
	// contains filtered or unexported fields
}

func NewStatusSetCustomCommand

func NewStatusSetCustomCommand(session *discordgo.Session) *StatusSetCustomCmd

func (*StatusSetCustomCmd) Aliases

func (cmd *StatusSetCustomCmd) Aliases() []string

func (*StatusSetCustomCmd) Execute

func (cmd *StatusSetCustomCmd) Execute(writer io.Writer, parameters []string)

func (*StatusSetCustomCmd) Name

func (cmd *StatusSetCustomCmd) Name() string

func (*StatusSetCustomCmd) PrintHelp

func (cmd *StatusSetCustomCmd) PrintHelp(writer io.Writer)

type TFABackupGetCmd

type TFABackupGetCmd struct {
	// contains filtered or unexported fields
}

func NewTFABackupGetCmd

func NewTFABackupGetCmd(session *discordgo.Session, window *ui.Window) *TFABackupGetCmd

func (*TFABackupGetCmd) Aliases

func (cmd *TFABackupGetCmd) Aliases() []string

func (*TFABackupGetCmd) Execute

func (cmd *TFABackupGetCmd) Execute(writer io.Writer, parameters []string)

func (*TFABackupGetCmd) Name

func (cmd *TFABackupGetCmd) Name() string

func (*TFABackupGetCmd) PrintHelp

func (cmd *TFABackupGetCmd) PrintHelp(writer io.Writer)

type TFABackupResetCmd

type TFABackupResetCmd struct {
	// contains filtered or unexported fields
}

func NewTFABackupResetCmd

func NewTFABackupResetCmd(session *discordgo.Session, window *ui.Window) *TFABackupResetCmd

func (*TFABackupResetCmd) Aliases

func (cmd *TFABackupResetCmd) Aliases() []string

func (*TFABackupResetCmd) Execute

func (cmd *TFABackupResetCmd) Execute(writer io.Writer, parameters []string)

func (*TFABackupResetCmd) Name

func (cmd *TFABackupResetCmd) Name() string

func (*TFABackupResetCmd) PrintHelp

func (cmd *TFABackupResetCmd) PrintHelp(writer io.Writer)

type TFACmd

type TFACmd struct {
	// contains filtered or unexported fields
}

func NewTFACommand

func NewTFACommand(tfaEnable *TFAEnableCmd, tfaDisable *TFADisableCmd, tfaBackupGet *TFABackupGetCmd, tfaBackupReset *TFABackupResetCmd) *TFACmd

func (*TFACmd) Aliases

func (cmd *TFACmd) Aliases() []string

func (*TFACmd) Execute

func (cmd *TFACmd) Execute(writer io.Writer, parameters []string)

func (*TFACmd) Name

func (cmd *TFACmd) Name() string

func (*TFACmd) PrintHelp

func (cmd *TFACmd) PrintHelp(writer io.Writer)

type TFADisableCmd

type TFADisableCmd struct {
	// contains filtered or unexported fields
}

func NewTFADisableCommand

func NewTFADisableCommand(session *discordgo.Session) *TFADisableCmd

func (*TFADisableCmd) Aliases

func (cmd *TFADisableCmd) Aliases() []string

func (*TFADisableCmd) Execute

func (cmd *TFADisableCmd) Execute(writer io.Writer, parameters []string)

func (*TFADisableCmd) Name

func (cmd *TFADisableCmd) Name() string

func (*TFADisableCmd) PrintHelp

func (cmd *TFADisableCmd) PrintHelp(writer io.Writer)

type TFAEnableCmd

type TFAEnableCmd struct {
	// contains filtered or unexported fields
}

func NewTFAEnableCommand

func NewTFAEnableCommand(window *ui.Window, session *discordgo.Session) *TFAEnableCmd

func (*TFAEnableCmd) Aliases

func (cmd *TFAEnableCmd) Aliases() []string

func (*TFAEnableCmd) Execute

func (cmd *TFAEnableCmd) Execute(writer io.Writer, parameters []string)

func (*TFAEnableCmd) Name

func (cmd *TFAEnableCmd) Name() string

func (*TFAEnableCmd) PrintHelp

func (cmd *TFAEnableCmd) PrintHelp(writer io.Writer)

type UserCmd

type UserCmd struct {
	// contains filtered or unexported fields
}

func NewUserCommand

func NewUserCommand(userSetCmd *UserSetCmd, userGetCmd *UserGetCmd) *UserCmd

func (*UserCmd) Aliases

func (cmd *UserCmd) Aliases() []string

func (*UserCmd) Execute

func (cmd *UserCmd) Execute(writer io.Writer, parameters []string)

func (*UserCmd) Name

func (cmd *UserCmd) Name() string

func (*UserCmd) PrintHelp

func (cmd *UserCmd) PrintHelp(writer io.Writer)

type UserGetCmd

type UserGetCmd struct {
	// contains filtered or unexported fields
}

func NewUserGetCommand

func NewUserGetCommand(window *ui.Window, session *discordgo.Session) *UserGetCmd

func (*UserGetCmd) Aliases

func (cmd *UserGetCmd) Aliases() []string

func (*UserGetCmd) Execute

func (cmd *UserGetCmd) Execute(writer io.Writer, parameters []string)

func (*UserGetCmd) Name

func (cmd *UserGetCmd) Name() string

func (*UserGetCmd) PrintHelp

func (cmd *UserGetCmd) PrintHelp(writer io.Writer)

type UserSetCmd

type UserSetCmd struct {
	// contains filtered or unexported fields
}

func NewUserSetCommand

func NewUserSetCommand(window *ui.Window, session *discordgo.Session) *UserSetCmd

func (*UserSetCmd) Aliases

func (cmd *UserSetCmd) Aliases() []string

func (*UserSetCmd) Execute

func (cmd *UserSetCmd) Execute(writer io.Writer, parameters []string)

func (*UserSetCmd) Name

func (cmd *UserSetCmd) Name() string

func (*UserSetCmd) PrintHelp

func (cmd *UserSetCmd) PrintHelp(writer io.Writer)

type VersionCmd

type VersionCmd struct{}

func NewVersionCommand

func NewVersionCommand() *VersionCmd

func (VersionCmd) Aliases

func (cmd VersionCmd) Aliases() []string

func (VersionCmd) Execute

func (cmd VersionCmd) Execute(writer io.Writer, parameters []string)

func (VersionCmd) Name

func (cmd VersionCmd) Name() string

func (VersionCmd) PrintHelp

func (cmd VersionCmd) PrintHelp(writer io.Writer)

Jump to

Keyboard shortcuts

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