INNER CODE UNIT · Go
width
intigriti/misconfig-mapper · internal/service/service.go:35
width = 80 // Default width
}
return width
}
// Run executes the main application logic
func (m *MisconfigMapper) Run() error {
termWidth := m.GetTerminalWidth()
// Update templates if requested
if m.Config.UpdateTemplates {
serviceFilePath := filepath.Join(m.Config.TemplatesPath, "services.json")
fileExists := templates.IsFile(serviceFilePath)
if err := m.Templates.UpdateTemplates(fileExists); err != nil {
return fmt.Errorf("failed to update templates: %w", err)
}
return nil
}