Documentation
¶
Index ¶
- Variables
- func ChooseGraphArgument(config configuration.Configuration) (string, parsers.OutputParser)
- func ExtractLegacyCLIError(input error, data []workflow.Data) error
- func HandleLegacyResolution(ctx gafworkflow.InvocationContext, config configuration.Configuration, ...) ([]gafworkflow.Data, error)
- func InvokeLegacy(ctx gafworkflow.InvocationContext, config configuration.Configuration, ...) ([]parsers.DepGraphOutput, error)
- func IsNoProjectFoundError(err error) bool
- func MapToWorkflowData(depGraphs []parsers.DepGraphOutput, logger *zerolog.Logger) []gafworkflow.Data
- func PrepareLegacyFlags(argument string, cfg configuration.Configuration, logger *zerolog.Logger)
- type CLIJSONError
- type ExitCoder
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoDepGraphsFound = errors.New("no depgraphs found")
Functions ¶
func ChooseGraphArgument ¶
func ChooseGraphArgument(config configuration.Configuration) (string, parsers.OutputParser)
func ExtractLegacyCLIError ¶
ExtractLegacyCLIError extracts the error message from the legacy cli if possible.
func HandleLegacyResolution ¶
func HandleLegacyResolution(ctx gafworkflow.InvocationContext, config configuration.Configuration, logger *zerolog.Logger) ([]gafworkflow.Data, error)
func InvokeLegacy ¶ added in v1.21.3
func InvokeLegacy(ctx gafworkflow.InvocationContext, config configuration.Configuration, logger *zerolog.Logger) ([]parsers.DepGraphOutput, error)
InvokeLegacy invokes the legacy CLI workflow and parses its output, returning the parsed dep-graph outputs. Returns ErrNoDepGraphsFound when the invocation succeeds but produces no graphs.
func IsNoProjectFoundError ¶ added in v1.21.3
IsNoProjectFoundError reports whether the error chain contains an error with exit code 3. Exit code 3 from the legacy CLI means "no projects found to test".
func MapToWorkflowData ¶
func MapToWorkflowData(depGraphs []parsers.DepGraphOutput, logger *zerolog.Logger) []gafworkflow.Data
func PrepareLegacyFlags ¶
func PrepareLegacyFlags(argument string, cfg configuration.Configuration, logger *zerolog.Logger)
Types ¶
type CLIJSONError ¶
type CLIJSONError struct {
Ok bool `json:"ok"`
ErrorMsg string `json:"error"`
Path string `json:"path"`
// contains filtered or unexported fields
}
CLIJSONError is the error type returned by the legacy cli.
func (*CLIJSONError) Error ¶
func (e *CLIJSONError) Error() string
Error returns the LegacyCliJsonError error message.
func (*CLIJSONError) Unwrap ¶
func (e *CLIJSONError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.