package
2.10.18+incompatible
Repository: https://github.com/kosli-dev/cli.git
Documentation: pkg.go.dev
# Functions
BeginTrail creates a trail with a yaml template on the server.
No description provided by the author
No description provided by the author
ConditionallyRequiredFlags checks that "requiredFlagName" must be set, and ONLY allowed to be set when "conditionFlagName" is set.
CreateApproval creates an approval for an artifact in a flow.
CreateArtifact creates an artifact on the server.
CreateArtifactOnTrail creates an artifact on a trail on the server.
No description provided by the author
No description provided by the author
CreateEnv creates an env on the server.
CreateFlow creates a flow on the server.
CreateFlowWithTemplate creates a flow with a yaml template on the server.
Custom error message instead of cobra.MaximumNArgs(1).
DefaultValue looks up the default value of a given flag in a given CI tool if the DOCS env variable is set, return empty string to avoid having irrelevant defaults in the docs if the KOSLI_TESTS env variable is set, return empty string to allow testing missing flags in CI.
DefaultValueForCommit returns DefaultValue for 'git-commit' in the given CI.
DeprecateFlags declares a list of flags as deprecated for a given command.
EnableBeta enables beta features for the org.
ErrorBeforePrintingUsage.
ExpectDeployment reports a deployment expectation of a given artifact to the server.
GetCIDefaultsTemplates returns the templates used in a given CI to calculate the input list of keys.
GetFlagFromVarName returns a POSIX cmd flag from a camelCase variable name.
GetSha256Digest calculates the sha256 digest of an artifact.
JoinFlagNames returns a comma-separated string of flag names with "--" prefix from a list of plain names.
KosliGenMarkdownCustom creates custom markdown output.
LoadJsonData loads json data from a file.
No description provided by the author
MuXRequiredFlags returns an error if more than one or none (if atLeastOne is true) of mutually-exclusive required flags are set.
ReportServerArtifactToEnv reports files/dirs in paths as server env artifacts.
No description provided by the author
RequireFlags declares a list of flags as required for a given command.
RequireGlobalFlags validates that a set of global fields have been assigned a value.
No description provided by the author
No description provided by the author
ValidateArtifactArg validates the artifact name or path argument.
ValidateAttestationArtifactArg validates the artifact name or path argument and fingerprint flag.
ValidateRegistryFlags validates that you provide all registry information necessary for remote digest.
ValidateSliceValues checks if all elements in the slice are one of the allowed values.
WhichCI detects which CI tool we are in based on env variables.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RealConfigGetter is a real implementation of the ConfigGetter interface.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
ConfigGetter defines an interface for getting the default config file path the interface allows to mock the default config file path in tests.