Documentation ¶
Index ¶
- Constants
- Variables
- func CheckErrorWithMessage(err error, message string) error
- func ExitOnErr(err error)
- func FailNoOp(err error, success, failed int, failNoOp bool)
- func GetBoolEnvValue(flagName string, defValue bool) (bool, error)
- func GetConfigVersion() string
- func GetDocumentationMessage() string
- func GetIntFlagValue(c *cli.Context, flagName string, defValue int) (int, error)
- func GetStringsArrFlagValue(c *cli.Context, flagName string) (resultArray []string)
- func GetVersion() string
- func InteractiveConfirm(message string) bool
- func IsWindows() bool
- func PanicOnError(err error) error
- func PrintHelpAndExitWithError(msg string, context *cli.Context)
- func PrintSummaryReport(success, failed int, err error) error
- func SpecVarsStringToMap(rawVars string) map[string]string
- func SumTrueValues(boolArr []bool) int
- type Credentials
- type ExitCode
- type OnError
Constants ¶
View Source
const ( // General CLI constants CliVersion = "1.20.2" ClientAgent = "jfrog-cli-go" OnErrorPanic OnError = "panic" // CLI base commands constants: CmdArtifactory = "rt" CmdBintray = "bt" CmdMissionControl = "mc" CmdXray = "xr" // Download DownloadMinSplitKb = 5120 DownloadSplitCount = 3 DownloadMaxSplitCount = 15 // Common Retries = 3 )
Variables ¶
View Source
var ExitCodeError = ExitCode{1}
View Source
var ExitCodeFailNoOp = ExitCode{2}
View Source
var ExitCodeNoError = ExitCode{0}
Functions ¶
func CheckErrorWithMessage ¶
func GetConfigVersion ¶
func GetConfigVersion() string
func GetDocumentationMessage ¶
func GetDocumentationMessage() string
func GetIntFlagValue ¶
func GetStringsArrFlagValue ¶
func GetVersion ¶
func GetVersion() string
func InteractiveConfirm ¶
func PanicOnError ¶
func PrintSummaryReport ¶
Print summary report. The given error will pass through and be returned as is if no other errors are raised.
func SpecVarsStringToMap ¶
func SumTrueValues ¶
Types ¶
type Credentials ¶
Click to show internal directories.
Click to hide internal directories.