Documentation
¶
Index ¶
- Constants
- Variables
- func Finalize(cmd CiCmd) *cobra.Command
- type BaseCommand
- func (cmd *BaseCommand) Errorf(format string, params ...interface{})
- func (cmd *BaseCommand) EvalCurrentAndNextVersion()
- func (cmd *BaseCommand) Failf(format string, params ...interface{})
- func (cmd *BaseCommand) GetCmdOutputOneLine(description string, name string, params ...string) string
- func (cmd *BaseCommand) GetCobraCmd() *cobra.Command
- func (cmd *BaseCommand) GetCurrentBranch() string
- func (cmd *BaseCommand) GetUsername() string
- func (cmd *BaseCommand) Infof(format string, params ...interface{})
- func (cmd *BaseCommand) Init(args []string)
- func (cmd *BaseCommand) RunGitCommand(description string, params ...string)
- func (cmd *BaseCommand) Warnf(format string, params ...interface{})
- type CiCmd
- type GoBuildInfo
- type GoBuildInfoCmd
- type RootCommand
Constants ¶
View Source
const ( Version = "v0.5.58" Revision = "8cb2df54fbcb" Branch = "v1" BuildUser = "Travis CI User" BuildDate = "2020-11-16 17:59:18" )
View Source
const ( DefaultGitUsername = "ziti-ci" DefaultGitEmail = "ziti-ci@netfoundry.io" DefaultSshKeyEnvVar = "gh_ci_key" DefaultSshKeyFile = "github_deploy_key" )
View Source
const ( Minor = 1 Patch = 2 )
View Source
const (
DefaultVersionFile = "./version"
)
View Source
const (
LangGo langType = 1
)
Variables ¶
View Source
var RootCmd = newRootCommand()
Functions ¶
Types ¶
type BaseCommand ¶
type BaseCommand struct { *RootCommand Cmd *cobra.Command Args []string BaseVersion *version.Version CurrentVersion *version.Version NextVersion *version.Version CurrentBranch *string BuildNumber *string }
func (*BaseCommand) Errorf ¶
func (cmd *BaseCommand) Errorf(format string, params ...interface{})
func (*BaseCommand) EvalCurrentAndNextVersion ¶
func (cmd *BaseCommand) EvalCurrentAndNextVersion()
func (*BaseCommand) Failf ¶
func (cmd *BaseCommand) Failf(format string, params ...interface{})
func (*BaseCommand) GetCmdOutputOneLine ¶
func (cmd *BaseCommand) GetCmdOutputOneLine(description string, name string, params ...string) string
func (*BaseCommand) GetCobraCmd ¶
func (cmd *BaseCommand) GetCobraCmd() *cobra.Command
func (*BaseCommand) GetCurrentBranch ¶
func (cmd *BaseCommand) GetCurrentBranch() string
func (*BaseCommand) GetUsername ¶
func (cmd *BaseCommand) GetUsername() string
func (*BaseCommand) Infof ¶
func (cmd *BaseCommand) Infof(format string, params ...interface{})
func (*BaseCommand) Init ¶
func (cmd *BaseCommand) Init(args []string)
func (*BaseCommand) RunGitCommand ¶
func (cmd *BaseCommand) RunGitCommand(description string, params ...string)
func (*BaseCommand) Warnf ¶ added in v0.5.49
func (cmd *BaseCommand) Warnf(format string, params ...interface{})
type GoBuildInfo ¶
type GoBuildInfoCmd ¶
type GoBuildInfoCmd struct { BaseCommand // contains filtered or unexported fields }
func (*GoBuildInfoCmd) Execute ¶
func (cmd *GoBuildInfoCmd) Execute()
type RootCommand ¶
func (*RootCommand) Execute ¶
func (r *RootCommand) Execute()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.