splitOutputSpec cuts a flake installable around the last instance of ^.
(s string)
| 729 | |
| 730 | // splitOutputSpec cuts a flake installable around the last instance of ^. |
| 731 | func splitOutputSpec(s string) (before, after string) { |
| 732 | if i := strings.LastIndexByte(s, '^'); i >= 0 { |
| 733 | return s[:i], s[i+1:] |
| 734 | } |
| 735 | return s, "" |
| 736 | } |