command

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 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 DownCommand added in v2.0.2

type DownCommand struct {
	UI *cli.BasicUi
}

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

type InfoCommand struct {
	UI *cli.BasicUi
}

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

type PressCommand struct {
	UI *cli.BasicUi
}

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

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.

type UpCommand added in v2.0.2

type UpCommand struct {
	UI *cli.BasicUi
}

UpCommand reperesents up command.

func (*UpCommand) ConnectAndUp added in v2.0.2

func (c *UpCommand) ConnectAndUp(ctx context.Context, cfg *upCfg) error

ConnectAndUp executes connect and off.

func (*UpCommand) Help added in v2.0.2

func (c *UpCommand) Help() string

Help represents help message for up command.

func (*UpCommand) Run added in v2.0.2

func (c *UpCommand) Run(args []string) int

Run executes parse args and pass args to RunContext.

func (*UpCommand) Synopsis added in v2.0.2

func (c *UpCommand) Synopsis() string

Synopsis represents synopsis message for up command.

Jump to

Keyboard shortcuts

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