feat(billing): Add cli subcommand for monthly active user counts

This commit is contained in:
Michael Milton authored and Timothy Messier committed 2024-02-23 15:44:10 +00:00
1 parent 111dc87ead
commit 2e69d59dd2
24 files changed
+791 -73

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ const (
AddGrantScopes Type = 60
SetGrantScopes Type = 61
RemoveGrantScopes Type = 62
MonthlyActiveUsers Type = 57
MonthlyActiveUsers Type = 63
// When adding new actions, be sure to update:
//
+4
View File
@@ -85,6 +85,8 @@ func (r Type) PluralString() string {
return "credential-libraries"
case Policy:
return "policies"
case Billing: // never pluralized
return "billing"
default:
return r.String() + "s"
}
@@ -96,6 +98,8 @@ func FromPlural(s string) (Type, bool) {
return CredentialLibrary, true
case "policies":
return Policy, true
case "billing":
return Billing, true
default:
t, ok := Map[strings.TrimSuffix(s, "s")]
return t, ok