cli

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Latest = cmd.CMD{
	Name:  "latest",
	Alias: "l",
	Short: "Get the latest stable release",
	Args:  &LatestArgs{},
	Run:   LatestRun,
}

Latest gets the most recent release for a given source

View Source
var Quick = cmd.CMD{
	Name:  "quick",
	Alias: "q",
	Short: "Get the version and location of the most recent release",
	Args:  &QuickArgs{},
	Run:   QuickRun,
}

Quick gets the most recent release for a given source, without pretty printing

View Source
var Releases = cmd.CMD{
	Name:  "releases",
	Alias: "r",
	Short: "Get all stable releases",
	Args:  &ReleasesArgs{},
	Run:   ReleasesRun,
}

Releases gets all releases for a given source

View Source
var Root *cmd.RootCMD

Root is the main command for this application

Functions

func LatestRun

func LatestRun(r *cmd.RootCMD, c *cmd.CMD)

LatestRun carries out finding the latest release

func QuickRun

func QuickRun(r *cmd.RootCMD, c *cmd.CMD)

QuickRun carries out finding the latest release

func ReleasesRun

func ReleasesRun(r *cmd.RootCMD, c *cmd.CMD)

ReleasesRun carries out finding all releases

Types

type GlobalFlags

type GlobalFlags struct{}

GlobalFlags contains the flags for all commands

type LatestArgs

type LatestArgs struct {
	URL string `desc:"Location of a previous source archive"`
}

LatestArgs contains the arguments for the "latest" subcommand

type QuickArgs

type QuickArgs struct {
	URL string `desc:"Location of a previous source archive"`
}

QuickArgs contains the arguments for the "quick" subcommand

type ReleasesArgs

type ReleasesArgs struct {
	URL string `desc:"Location of a previous source archive"`
}

ReleasesArgs contains the arguments for the "releases" subcommand

Jump to

Keyboard shortcuts

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