applyNetworkACLPatch handles the common API call and rendering logic.
(ctx context.Context, cli *cli, id string, patch *management.NetworkACL)
| 163 | |
| 164 | // applyNetworkACLPatch handles the common API call and rendering logic. |
| 165 | func applyNetworkACLPatch(ctx context.Context, cli *cli, id string, patch *management.NetworkACL) error { |
| 166 | if err := ansi.Waiting(func() error { |
| 167 | return cli.api.NetworkACL.Patch(ctx, id, patch) |
| 168 | }); err != nil { |
| 169 | return fmt.Errorf("failed to update network ACL with ID %q: %w", id, err) |
| 170 | } |
| 171 | |
| 172 | cli.renderer.NetworkACLUpdate(patch) |
| 173 | return nil |
| 174 | } |
| 175 | |
| 176 | func selectNetworkACLParams(cmd *cobra.Command) (map[string]bool, error) { |
| 177 | options := []string{ |
no test coverage detected