feat(billing): Add cli subcommand for monthly active user counts
This commit is contained in:
1 parent
111dc87ead
commit
2e69d59dd2
24 files changed
+791
-73
No files matched your search
@@ -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:
|
||||
//
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user