(basePath string, fullPath string)
| 974 | } |
| 975 | |
| 976 | func relativeRemotePath(basePath string, fullPath string) string { |
| 977 | base := path.Clean(basePath) |
| 978 | full := path.Clean(fullPath) |
| 979 | if base == "/" { |
| 980 | return strings.TrimPrefix(full, "/") |
| 981 | } |
| 982 | prefix := base + "/" |
| 983 | if strings.HasPrefix(full, prefix) { |
| 984 | return strings.TrimPrefix(full, prefix) |
| 985 | } |
| 986 | return full |
| 987 | } |
| 988 | |
| 989 | func splitCompletionLine(input string) ([]string, string, bool) { |
| 990 | args := make([]string, 0) |
no outgoing calls
no test coverage detected