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

Method EmptyState

internal/display/display.go:99–105  ·  view source on GitHub ↗
(resource string, hint string)

Source from the content-addressed store, hash-verified

97}
98
99func (r *Renderer) EmptyState(resource string, hint string) {
100 if r.Format == OutputFormatJSON || r.Format == OutputFormatJSONCompact {
101 r.JSONResult([]interface{}{})
102 return
103 }
104 r.Warnf("No %s available. %s\n", resource, hint)
105}
106
107func (r *Renderer) JSONResult(data interface{}) {
108 b, err := json.MarshalIndent(data, "", " ")

Callers 15

LogListMethod · 0.95
UserBlocksListMethod · 0.95
NetworkACLListMethod · 0.95
RolePermissionListMethod · 0.95
PhoneProviderListMethod · 0.95
CustomDomainListMethod · 0.95
UserSearchMethod · 0.95
ACULConfigListMethod · 0.95
ActionListMethod · 0.95
EventStreamsListMethod · 0.95
ApplicationListMethod · 0.95
RulesListMethod · 0.95

Calls 2

JSONResultMethod · 0.95
WarnfMethod · 0.95

Tested by

no test coverage detected