Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InfoCommand ¶
InfoCommand reperesents press command.
func (*InfoCommand) ConnectAndGetInfo ¶ added in v0.3.1
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 ¶ added in v0.2.2
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.