parse a single instance of --name-transform
(s string)
| 82 | |
| 83 | // parse a single instance of --name-transform |
| 84 | func parse(s string) (t transform, err error) { |
| 85 | if s == "" { |
| 86 | return t, nil |
| 87 | } |
| 88 | s = t.parseTag(s) |
| 89 | err = t.parseKeyVal(s) |
| 90 | return t, err |
| 91 | } |
| 92 | |
| 93 | // parse the tag (file/dir/all), set the option accordingly, and return the trimmed string |
| 94 | // |
no test coverage detected
searching dependent graphs…