cmd

package
v0.0.0-...-2b7ae3b Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "u2fcli",
	Short: "Interact with U2F tokens from the command line",
	Long: `u2fcli lets you interact with a hardware U2F token.
	Could be used for debugging, development and demonstrations purposes`,
}

This represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd

Types

type Devices

type Devices []*hid.DeviceInfo

Ordered Devices by Path

func (Devices) Len

func (s Devices) Len() int

func (Devices) Less

func (s Devices) Less(i, j int) bool

func (Devices) Swap

func (s Devices) Swap(i, j int)

Jump to

Keyboard shortcuts

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