Ejemplo n.º 1
0
func (command *GetPipelineCommand) showConfigWarning() {
	if isatty.IsTerminal(os.Stdout.Fd()) {
		fmt.Fprintln(os.Stderr, "")
	}
	displayhelpers.PrintWarningHeader()
	fmt.Fprintln(os.Stderr, "Existing config is invalid, it was returned as-is\n")
}
Ejemplo n.º 2
0
func (atcConfig ATCConfig) showPipelineConfigErrors(errorMessages []string) {
	fmt.Fprintln(os.Stderr, "")
	displayhelpers.PrintWarningHeader()

	fmt.Fprintln(os.Stderr, "Error loading existing config:")
	for _, errorMessage := range errorMessages {
		fmt.Fprintf(os.Stderr, "  - %s\n", errorMessage)
	}

	fmt.Fprintln(os.Stderr, "")
}