command

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfoCommand

type InfoCommand struct {
	UI *cli.BasicUi
}

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

type PressCommand struct {
	UI *cli.BasicUi
}

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

type ScanCommand struct {
	UI *cli.BasicUi
}

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.

Jump to

Keyboard shortcuts

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