mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-13 23:01:09 -07:00
15
packages/cli/src/utils/tierUtils.ts
Normal file
15
packages/cli/src/utils/tierUtils.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2026 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Checks if the given tier name corresponds to an "Ultra" tier.
|
||||
*
|
||||
* @param tierName The name of the user's tier.
|
||||
* @returns True if the tier is an "Ultra" tier, false otherwise.
|
||||
*/
|
||||
export function isUltraTier(tierName?: string): boolean {
|
||||
return !!tierName?.toLowerCase().includes('ultra');
|
||||
}
|
||||
Reference in New Issue
Block a user