cli

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2018 License: MIT Imports: 30 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSingle

func GetSingle(list []*rpc.MirrorID) (int, string, error)

func ParseCommands

func ParseCommands(args ...string) error

ParseCommands parses the command line and call the appropriate functions

func SubCmd

func SubCmd(name, signature, description string) *flag.FlagSet

SubCmd prints the usage of a subcommand

Types

type ByDate

type ByDate []*rpc.Mirror

func (ByDate) Len

func (d ByDate) Len() int

func (ByDate) Less

func (d ByDate) Less(i, j int) bool

func (ByDate) Swap

func (d ByDate) Swap(i, j int)

Jump to

Keyboard shortcuts

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