func (output OutputArray) Write(settings config.Config) {
	switch settings.GetOutputFormat() {
	case "csv":
		output.toCSV(*settings.OutputFile)
	case "html":
		output.toHTML(*settings.OutputFile, settings.ShouldAppend())
	case "drawio":
		if !output.DrawIOHeader.IsSet() {
			log.Fatal("This command doesn't currently support the drawio output format")
		}
		drawio.CreateCSV(output.DrawIOHeader, output.Keys, output.GetContentsMap(), *settings.OutputFile)
	case "dot":
		if settings.DotColumns == nil {
			log.Fatal("This command doesn't currently support the dot output format")
		}
		output.toDot(*settings.OutputFile, settings.DotColumns)
	default:
		output.toJSON(*settings.OutputFile)
	}
}
// Write will provide the output as configured in the configuration
Write will provide the output as configured in the configuration
// Write will provide the output as configured in the configuration
func (output OutputArray) Write(settings config.Config) {
	switch settings.GetOutputFormat() {
	case "csv":
		output.toCSV(*settings.OutputFile)
	case "html":
		output.toHTML(*settings.OutputFile, settings.ShouldAppend())
	case "drawio":
		if !output.DrawIOHeader.IsSet() {
			log.Fatal("This command doesn't currently support the drawio output format")
		}
		drawio.CreateCSV(output.DrawIOHeader, output.Keys, output.GetContentsMap(), *settings.OutputFile)
	case "dot":
		if settings.DotColumns == nil {
			log.Fatal("This command doesn't currently support the dot output format")
		}
		output.toDot(*settings.OutputFile, settings.DotColumns)
	default:
		output.toJSON(*settings.OutputFile)
	}
}
func ( output OutputArray ) Write ( settings config . Config ) { switch settings . GetOutputFormat ( ) { case " " : output . toCSV ( * settings . OutputFile ) case " " : output . toHTML ( * settings . OutputFile , settings . ShouldAppend ( ) ) case " " : if ! output . DrawIOHeader . IsSet ( ) { log . Fatal ( " " ) } drawio . CreateCSV ( output . DrawIOHeader , output . Keys , output . GetContentsMap ( ) , * settings . OutputFile ) case " " : if settings . DotColumns == nil { log . Fatal ( " " ) } output . toDot ( * settings . OutputFile , settings . DotColumns ) default : output . toJSON ( * settings . OutputFile ) } }
Write will provide the output as configured in the configuration
Write will provide the output as configured in the configuration