cli

package
v0.0.0-...-30412bc Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 Report = cmd.CMD{
	Name:  "report",
	Alias: "r",
	Short: "Generates a report of the last update",
	Args:  &ReportArgs{},
	Run:   ReportRun,
}

Report generates a report of the last update

View Source
var Root *cmd.RootCMD

Root is the main command for this application

View Source
var Update = cmd.CMD{
	Name:  "update",
	Alias: "u",
	Short: "Get the version and location for all identifiable sources",
	Args:  &UpdateArgs{},
	Run:   UpdateRun,
}

Update gets the most recent release for all package.yml files in a directory

Functions

func QuickRun

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

QuickRun carries out finding the latest release

func ReportRun

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

ReportRun carries out finding the latest releases

func UpdateRun

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

UpdateRun carries out finding the latest releases

Types

type GlobalFlags

type GlobalFlags struct{}

GlobalFlags contains the flags for all commands

type QuickArgs

type QuickArgs struct {
	Path string `desc:"Location of package.yml"`
}

QuickArgs contains the arguments for the "quick" subcommand

type ReportArgs

type ReportArgs struct{}

ReportArgs contains the arguments for the "report" subcommand

type UpdateArgs

type UpdateArgs struct{}

UpdateArgs contains the arguments for the "update" subcommand

Jump to

Keyboard shortcuts

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