cmd

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServeCommand

func NewServeCommand() *cobra.Command

func NewSniffCommand

func NewSniffCommand() *cobra.Command

func NewTransmitCommand

func NewTransmitCommand() *cobra.Command

Types

type ServeOptions

type ServeOptions struct {
	config.Config
	ConfigFilename string
}

func (*ServeOptions) AddFlags

func (o *ServeOptions) AddFlags(cmd *cobra.Command)

func (*ServeOptions) Run

func (o *ServeOptions) Run(cmd *cobra.Command) error

type SniffOptions

type SniffOptions struct {
	Pin uint
}

func (*SniffOptions) AddFlags

func (o *SniffOptions) AddFlags(cmd *cobra.Command)

func (*SniffOptions) Run

func (o *SniffOptions) Run(cmd *cobra.Command) error

type TransmitOptions

type TransmitOptions struct {
	config.Config
	PulseLength uint
	Pin         uint
	Protocol    int
	Count       int
	Delay       time.Duration
	Infinite    bool
}

func (*TransmitOptions) AddFlags

func (o *TransmitOptions) AddFlags(cmd *cobra.Command)

func (*TransmitOptions) Run

func (o *TransmitOptions) Run(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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