version

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSelfUpgradeCmd

func NewSelfUpgradeCmd(client common.JenkinsClient, jenkinsConfigMgr common.JenkinsConfigMgr) (cmd *cobra.Command)

NewSelfUpgradeCmd create a command for self upgrade

func NewVersionCmd

func NewVersionCmd(client common.JenkinsClient, jenkinsConfigMgr common.JenkinsConfigMgr) (cmd *cobra.Command)

NewVersionCmd create a command for version

Types

type PrintOption

type PrintOption struct {
	Changelog  bool
	ShowLatest bool

	JenkinsClient    common.JenkinsClient
	JenkinsConfigMgr common.JenkinsConfigMgr
}

PrintOption is the version option

func (*PrintOption) RunE

func (o *PrintOption) RunE(cmd *cobra.Command, _ []string) (err error)

RunE is the main point of current command

type SelfUpgradeOption

type SelfUpgradeOption struct {
	ShowProgress bool
	Privilege    bool

	GitHubClient *github.Client
	RoundTripper http.RoundTripper
}

SelfUpgradeOption is the option for self upgrade command

func (*SelfUpgradeOption) RunE

func (o *SelfUpgradeOption) RunE(cmd *cobra.Command, args []string) (err error)

RunE is the main point of current command

Jump to

Keyboard shortcuts

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