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

Function selectTenantSettingsParams

internal/cli/tenant_settings.go:154–168  ·  view source on GitHub ↗
(isSet bool)

Source from the content-addressed store, hash-verified

152}
153
154func selectTenantSettingsParams(isSet bool) ([]string, error) {
155 var selectedFlags []string
156 label := "Please select the flags you want to "
157 if isSet {
158 label += "enable (only the selected flags will be changed):"
159 } else {
160 label += "disable (only the selected flags will be changed):"
161 }
162
163 if err := prompt.AskMultiSelect(label, &selectedFlags, utils.FetchKeys(display.SupportedTenantSettings)...); err != nil {
164 return nil, err
165 }
166
167 return selectedFlags, nil
168}
169
170func setSelectedTenantFlags(f *management.TenantFlags, selectedFlags []string, isSet bool) {
171 val := auth0.Bool(isSet)

Callers 2

setFunction · 0.85
unsetFunction · 0.85

Calls 2

AskMultiSelectFunction · 0.92
FetchKeysFunction · 0.92

Tested by

no test coverage detected