(prefix string)
| 124 | type PathWithExistenceCheckOrURL string |
| 125 | |
| 126 | func (PathWithExistenceCheckOrURL) Complete(prefix string) []flags.Completion { |
| 127 | return completeWithTilde(prefix) |
| 128 | } |
| 129 | |
| 130 | func (p *PathWithExistenceCheckOrURL) UnmarshalFlag(path string) error { |
| 131 | if !strings.HasPrefix(path, "http://") && !strings.HasPrefix(path, "https://") { |
nothing calls this directly
no test coverage detected