Documentation ¶
Index ¶
- Variables
- func ConfigCommand() *cobra.Command
- func Execute()
- func GithubPublishReleaseCommand() *cobra.Command
- func KarmaExecuteTestsCommand() *cobra.Command
- func PrepareConfig(cmd *cobra.Command, metadata *config.StepData, stepName string, ...) error
- func VersionCommand() *cobra.Command
- type GeneralConfigOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var GitCommit string
GitCommit ...
View Source
var GitTag string
GitTag ...
Functions ¶
func ConfigCommand ¶
ConfigCommand is the entry command for loading the configuration of a pipeline step
func GithubPublishReleaseCommand ¶
GithubPublishReleaseCommand Publish a release in GitHub
func KarmaExecuteTestsCommand ¶
KarmaExecuteTestsCommand Executes the Karma test runner
func PrepareConfig ¶
func PrepareConfig(cmd *cobra.Command, metadata *config.StepData, stepName string, options interface{}, openFile func(s string) (io.ReadCloser, error)) error
PrepareConfig reads step configuration from various sources and merges it (defaults, config file, flags, ...)
func VersionCommand ¶
VersionCommand Returns the version of the piper binary
Types ¶
type GeneralConfigOptions ¶
type GeneralConfigOptions struct { CustomConfig string DefaultConfig []string //ordered list of Piper default configurations. Can be filePath or ENV containing JSON in format 'ENV:MY_ENV_VAR' ParametersJSON string StageName string StepConfigJSON string StepMetadata string //metadata to be considered, can be filePath or ENV containing JSON in format 'ENV:MY_ENV_VAR' StepName string Verbose bool }
GeneralConfigOptions contains all global configuration options for piper binary
var GeneralConfig GeneralConfigOptions
GeneralConfig contains global configuration flags for piper binary
Click to show internal directories.
Click to hide internal directories.