cmd

package
v0.5.124 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version   = "v0.5.124"
	Revision  = "cfd367326ddd"
	Branch    = "unknown"
	BuildUser = "unknown"
	BuildDate = "2024-09-30T14:12:07Z"
)
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 (
	LangGo   langType = 1
	LangJava langType = 2
)
View Source
const (
	Minor = 1
	Patch = 2
)
View Source
const (
	DefaultVersionFile = "./version"
)

Variables

View Source
var RootCmd = newRootCommand()

Functions

func Finalize

func Finalize(cmd CiCmd) *cobra.Command

func FinalizeErroringCmd added in v0.5.112

func FinalizeErroringCmd(cmd ErroringCiCmd) *cobra.Command

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 CiCmd

type CiCmd interface {
	GetCobraCmd() *cobra.Command
	Init(args []string)
	Execute()
}

type ErroringCiCmd added in v0.5.112

type ErroringCiCmd interface {
	GetCobraCmd() *cobra.Command
	Init(args []string)
	Execute() error
}

type GoBuildFlagsCmd added in v0.5.115

type GoBuildFlagsCmd struct {
	BaseCommand
	// contains filtered or unexported fields
}

func (*GoBuildFlagsCmd) Execute added in v0.5.115

func (cmd *GoBuildFlagsCmd) Execute()

type GoBuildInfo

type GoBuildInfo struct {
	PackageName string
	Version     string
	Revision    string
	BuildDate   string
}

type GoBuildInfoCmd

type GoBuildInfoCmd struct {
	BaseCommand
	// contains filtered or unexported fields
}

func (*GoBuildInfoCmd) Execute

func (cmd *GoBuildInfoCmd) Execute()

type RootCommand

type RootCommand struct {
	RootCobraCmd *cobra.Command
	// contains filtered or unexported fields
}

func (*RootCommand) Execute

func (r *RootCommand) Execute()

type SdkBuildInfo added in v0.5.112

type SdkBuildInfo struct {
	Version string
}

type SdkBuildInfoCmd added in v0.5.112

type SdkBuildInfoCmd struct {
	BaseCommand
}

func (*SdkBuildInfoCmd) Execute added in v0.5.112

func (cmd *SdkBuildInfoCmd) Execute()

type TidyTagsCmd added in v0.5.115

type TidyTagsCmd struct {
	BaseCommand
	// contains filtered or unexported fields
}

func (*TidyTagsCmd) Execute added in v0.5.115

func (cmd *TidyTagsCmd) Execute()

Jump to

Keyboard shortcuts

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