cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayBuildsForProject

func DisplayBuildsForProject(client client.API, opts ListBuildForProjectOptions, w io.Writer) error

DisplayBuildsForProject will render the projects you have access to

func DisplayOverview

func DisplayOverview(client client.API, opts OverviewOptions, w io.Writer) error

DisplayOverview will render each project asked for and the last build value

func DisplayProjects

func DisplayProjects(client client.API, w io.Writer) error

DisplayProjects will render the projects you have access to

func Execute

func Execute()

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

func NewListBuildsForProjectCommand

func NewListBuildsForProjectCommand(client client.API) *cobra.Command

NewListBuildsForProjectCommand creates a new `builds` command

func NewListProjectsCommand

func NewListProjectsCommand(client client.API) *cobra.Command

NewListProjectsCommand creates a new `projects` command

func NewOverviewCommand

func NewOverviewCommand(client client.API) *cobra.Command

NewOverviewCommand creates a new `overview` command

func NewRootCommand

func NewRootCommand(client client.API) *cobra.Command

NewRootCommand will return the application

Types

type BuildRecord

type BuildRecord struct {
	Project string
	Status  string
	Start   string
	Finish  string
}

BuildRecord gives us a struct to store records

type ListBuildForProjectOptions

type ListBuildForProjectOptions struct {
	Args    []string
	Project string
}

ListBuildForProjectOptions defines what arguments/options the user can provide

type OverviewOptions added in v1.1.0

type OverviewOptions struct {
	Args   []string
	Filter string
}

OverviewOptions defines what arguments/options the user can provide

Jump to

Keyboard shortcuts

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