(cmd *cobra.Command)
| 17 | } |
| 18 | |
| 19 | func parseRelocationOptions(cmd *cobra.Command) (relocationOptions, error) { |
| 20 | ifExists, err := parseRelocationIfExists(cmd) |
| 21 | if err != nil { |
| 22 | return relocationOptions{}, err |
| 23 | } |
| 24 | return relocationOptions{ifExists: ifExists}, nil |
| 25 | } |
| 26 | |
| 27 | func parseRelocationIfExists(cmd *cobra.Command) (string, error) { |
| 28 | if cmd == nil { |
no test coverage detected