(cmd *cobra.Command, currentInstance *api.Instance, specs *utils.SpecStore)
| 350 | } |
| 351 | |
| 352 | func buildModifyRequestFromFlags(cmd *cobra.Command, currentInstance *api.Instance, specs *utils.SpecStore) (api.InstanceModifyRequest, error) { |
| 353 | presets := buildModifyPresets(cmd) |
| 354 | return validateAndBuildModifyRequest(presets, currentInstance, specs) |
| 355 | } |
| 356 | |
| 357 | // validateAndBuildModifyRequest validates modify presets against the current instance |
| 358 | // and spec store, returning a ready-to-send API request or an error. |