isLocalConfigRef reports whether ref points at a local agent config file (as opposed to a built-in name, OCI image, or URL).
(ref string)
| 777 | // isLocalConfigRef reports whether ref points at a local agent config file |
| 778 | // (as opposed to a built-in name, OCI image, or URL). |
| 779 | func isLocalConfigRef(ref string) bool { |
| 780 | return !config.IsURLReference(ref) && isConfigFileName(ref) |
| 781 | } |
| 782 | |
| 783 | // displayRef returns the ref as shown to the user: local config paths are |
| 784 | // shortened with "~", everything else is unchanged. |