cmd

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: MIT Imports: 20 Imported by: 1

Documentation

Index

Constants

View Source
const (
	JsonOutputFormat string = "json"
	YAMLOutputFormat string = "yaml"
)

Variables

This section is empty.

Functions

func Execute

func Execute()

func Format added in v0.0.9

func Format(obj interface{}, format string) (data []byte, err error)

Types

type Config

type Config struct {
	Current        string          `yaml:"current"`
	JenkinsServers []JenkinsServer `yaml:"jenkins_servers"`
}

type ConfigOptions added in v0.0.9

type ConfigOptions struct {
	Current  string
	Show     bool
	Generate bool
	List     bool

	ConfigFileLocation string
}

type CrumbIssuer

type CrumbIssuer struct {
	Crumb             string `json:"crumb"`
	CrumbRequestField string `json:"crumbRequestField"`
}

type CrumbIssuerOptions

type CrumbIssuerOptions struct {
	Upload bool
}

Start contains the command line options

type JenkinsServer

type JenkinsServer struct {
	Name     string `yaml:"name"`
	URL      string `yaml:"url"`
	UserName string `yaml:"username"`
	Token    string `yaml:"token"`
	Proxy    string `yaml:"proxy"`
}

JenkinsServer holds the configuration of your Jenkins

type OutputOption added in v0.0.9

type OutputOption struct {
	Format string
}

type PluginOptions

type PluginOptions struct {
	Upload      bool
	CheckUpdate bool
	Open        bool
	List        bool

	Install   []string
	Uninstall string
}

PluginOptions contains the command line options

type ProgressIndicator added in v0.0.9

type ProgressIndicator struct {
	bytes.Buffer
	Total float64
	// contains filtered or unexported fields
}

func (*ProgressIndicator) Init added in v0.0.9

func (i *ProgressIndicator) Init()

func (*ProgressIndicator) Read added in v0.0.9

func (i *ProgressIndicator) Read(p []byte) (n int, err error)

func (*ProgressIndicator) Write added in v0.0.9

func (i *ProgressIndicator) Write(p []byte) (n int, err error)

type QueueOption added in v0.0.9

type QueueOption struct {
	OutputOption
}

type RestartOptions added in v0.0.9

type RestartOptions struct {
}

type RootOptions added in v0.0.9

type RootOptions struct {
	Version bool
}

Jump to

Keyboard shortcuts

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