Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownCommand ¶ added in v2.0.2
DownCommand reperesents down command.
func (*DownCommand) ConnectAndDown ¶ added in v2.0.2
func (c *DownCommand) ConnectAndDown(ctx context.Context, cfg *downCfg) error
ConnectAndDown executes connect and on.
func (*DownCommand) Help ¶ added in v2.0.2
func (c *DownCommand) Help() string
Help represents help message for down command.
func (*DownCommand) Run ¶ added in v2.0.2
func (c *DownCommand) Run(args []string) int
Run executes parse args and pass args to RunContext.
func (*DownCommand) Synopsis ¶ added in v2.0.2
func (c *DownCommand) Synopsis() string
Synopsis represents synopsis message for down command.
type InfoCommand ¶
InfoCommand reperesents press command.
func (*InfoCommand) ConnectAndGetInfo ¶
func (c *InfoCommand) ConnectAndGetInfo(ctx context.Context, cfg *infoCfg) (*switchbot.BotInfo, error)
ConnectAndGetInfo connect and get info.
func (*InfoCommand) Help ¶
func (c *InfoCommand) Help() string
Help represents help message for press command.
func (*InfoCommand) Run ¶
func (c *InfoCommand) Run(args []string) int
Run executes parse args and pass args to RunContext.
func (*InfoCommand) Synopsis ¶
func (c *InfoCommand) Synopsis() string
Synopsis represents synopsis message for press command.
type PressCommand ¶
PressCommand reperesents press command.
func (*PressCommand) ConnectAndPress ¶
func (c *PressCommand) ConnectAndPress(ctx context.Context, cfg *pressCfg) error
ConnectAndPress executes connect and press.
func (*PressCommand) Help ¶
func (c *PressCommand) Help() string
Help represents help message for press command.
func (*PressCommand) Run ¶
func (c *PressCommand) Run(args []string) int
Run executes parse args and pass args to RunContext.
func (*PressCommand) Synopsis ¶
func (c *PressCommand) Synopsis() string
Synopsis represents synopsis message for press command.
type ScanCommand ¶
ScanCommand reperesents scan command.
func (*ScanCommand) Help ¶
func (c *ScanCommand) Help() string
Help represents help message for scan command.
func (*ScanCommand) Run ¶
func (c *ScanCommand) Run(args []string) int
Run executes parse args and executes scan function.
func (*ScanCommand) Synopsis ¶
func (c *ScanCommand) Synopsis() string
Synopsis represents synopsis message for scan command.
type UpCommand ¶ added in v2.0.2
UpCommand reperesents up command.
func (*UpCommand) ConnectAndUp ¶ added in v2.0.2
ConnectAndUp executes connect and off.