summaryrefslogtreecommitdiff
path: root/packages/cli/src/gemini.tsx
diff options
context:
space:
mode:
authorRichie Foreman <[email protected]>2025-08-17 12:43:21 -0400
committerGitHub <[email protected]>2025-08-17 16:43:21 +0000
commit2998f27f703282359f6389d1c2d8758fc6a14955 (patch)
treea7e3ff7f969c44e61ab27240cdd615e291b6deae /packages/cli/src/gemini.tsx
parentec1fa954d18ec9abab3ce669536dd24559a499f1 (diff)
chore(compiler): Enable strict property access TS compiler flag. (#6255)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/cli/src/gemini.tsx')
-rw-r--r--packages/cli/src/gemini.tsx12
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/cli/src/gemini.tsx b/packages/cli/src/gemini.tsx
index 64bb5c84..f7089e28 100644
--- a/packages/cli/src/gemini.tsx
+++ b/packages/cli/src/gemini.tsx
@@ -80,7 +80,7 @@ function getNodeMemoryArgs(config: Config): string[] {
);
}
- if (process.env.GEMINI_CLI_NO_RELAUNCH) {
+ if (process.env['GEMINI_CLI_NO_RELAUNCH']) {
return [];
}
@@ -141,7 +141,7 @@ export async function main() {
if (settings.errors.length > 0) {
for (const error of settings.errors) {
let errorMessage = `Error in ${error.path}: ${error.message}`;
- if (!process.env.NO_COLOR) {
+ if (!process.env['NO_COLOR']) {
errorMessage = `\x1b[31m${errorMessage}\x1b[0m`;
}
console.error(errorMessage);
@@ -187,7 +187,7 @@ export async function main() {
// Set a default auth type if one isn't set.
if (!settings.merged.selectedAuthType) {
- if (process.env.CLOUD_SHELL === 'true') {
+ if (process.env['CLOUD_SHELL'] === 'true') {
settings.setValue(
SettingScope.User,
'selectedAuthType',
@@ -217,7 +217,7 @@ export async function main() {
}
// hop into sandbox if we are outside and sandboxing is enabled
- if (!process.env.SANDBOX) {
+ if (!process.env['SANDBOX']) {
const memoryArgs = settings.merged.autoConfigureMaxOldSpaceSize
? getNodeMemoryArgs(config)
: [];
@@ -338,7 +338,9 @@ export async function main() {
function setWindowTitle(title: string, settings: LoadedSettings) {
if (!settings.merged.hideWindowTitle) {
- const windowTitle = (process.env.CLI_TITLE || `Gemini - ${title}`).replace(
+ const windowTitle = (
+ process.env['CLI_TITLE'] || `Gemini - ${title}`
+ ).replace(
// eslint-disable-next-line no-control-regex
/[\x00-\x1F\x7F]/g,
'',