(app string)
| 97 | } |
| 98 | |
| 99 | func editorTool(app string) (editorconfig.ToolConfig, error) { |
| 100 | registry := editorconfig.DefaultRegistry() |
| 101 | tool, ok := registry.Get(app) |
| 102 | if !ok { |
| 103 | return nil, NewError("CONFIG_APP_NOT_FOUND", "unsupported config app", map[string]string{"app": app}) |
| 104 | } |
| 105 | return tool, nil |
| 106 | } |