cli

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2025 License: MIT Imports: 30 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSingle

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

func IsHTTPOnly added in v0.6.1

func IsHTTPOnly(m *rpc.Mirror) bool

func IsHTTPSOnly added in v0.6.1

func IsHTTPSOnly(m *rpc.Mirror) bool

func IsUp added in v0.6.1

func IsUp(m *rpc.Mirror) bool

func ParseCommands

func ParseCommands(args ...string) error

ParseCommands parses the command line and call the appropriate functions

func StatusString added in v0.6.1

func StatusString(m *rpc.Mirror) string

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