isConfigFileName reports whether name has an agent config file extension.
(name string)
| 70 | |
| 71 | // isConfigFileName reports whether name has an agent config file extension. |
| 72 | func isConfigFileName(name string) bool { |
| 73 | switch strings.ToLower(filepath.Ext(name)) { |
| 74 | case ".yaml", ".yml", ".hcl": |
| 75 | return true |
| 76 | default: |
| 77 | return false |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | // errAgentPickerCancelled is returned when the user aborts the picker |
| 82 | // (Esc / Ctrl-C) without choosing an agent. |
no outgoing calls
no test coverage detected