MCPcopy Create free account
hub / github.com/auth0/auth0-cli / applyNetworkACLPatch

Function applyNetworkACLPatch

internal/cli/network_acl.go:165–174  ·  view source on GitHub ↗

applyNetworkACLPatch handles the common API call and rendering logic.

(ctx context.Context, cli *cli, id string, patch *management.NetworkACL)

Source from the content-addressed store, hash-verified

163
164// applyNetworkACLPatch handles the common API call and rendering logic.
165func 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
176func selectNetworkACLParams(cmd *cobra.Command) (map[string]bool, error) {
177 options := []string{

Callers 1

updateNetworkACLCmdFunction · 0.85

Calls 4

WaitingFunction · 0.92
ErrorfMethod · 0.80
NetworkACLUpdateMethod · 0.80
PatchMethod · 0.65

Tested by

no test coverage detected