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.85" Revision = "97157fab51a1" Branch = "v1" BuildUser = "" BuildDate = "2022-03-08T23:18:19Z" )
View Source
const ( DefaultGitUsername = "ziti-ci" DefaultGitEmail = "ziti-ci@netfoundry.io" DefaultSshKeyEnvVar = "gh_ci_key" DefaultGpgKeyEnvVar = "ziti_ci_gpg_key" DefaultGpgKeyIdEnvVar = "ziti_ci_gpg_key_id" 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
¶
- build_info.go
- build_info_cmd.go
- common.go
- configure_git_cmd.go
- get_branch_cmd.go
- get_current_version_cmd.go
- get_next_version_cmd.go
- get_release_notes.go
- package_cmd.go
- publish_to_artifactory.go
- publish_to_github.go
- root_cmd.go
- tag_cmd.go
- trigger_github_build_cmd.go
- trigger_jenkins_build_cmd.go
- trigger_travis_build_cmd.go
- update-deps.go
- version_util.go
Click to show internal directories.
Click to hide internal directories.