diff options
| author | Jacob Richman <[email protected]> | 2025-05-01 10:34:07 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-01 10:34:07 -0700 |
| commit | 7e8f379dfbd4d70050ce301a42a38ba9c1f052f4 (patch) | |
| tree | 7d712dd0b3b6b246bc7dd92048cc91c5317a3a47 /packages/cli/src/gemini.ts | |
| parent | a18eea8c23dfb6759472d6b0bb80e13c2d6ef736 (diff) | |
Save settings to ~/.gemini/settings.json and optionally /your/workspace/.gemini/settings.json (#237)
Diffstat (limited to 'packages/cli/src/gemini.ts')
| -rw-r--r-- | packages/cli/src/gemini.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/cli/src/gemini.ts b/packages/cli/src/gemini.ts index 8977099e..a27da439 100644 --- a/packages/cli/src/gemini.ts +++ b/packages/cli/src/gemini.ts @@ -14,12 +14,20 @@ import { readPackageUp } from 'read-package-up'; import { fileURLToPath } from 'node:url'; import { dirname } from 'node:path'; import { sandbox_command, start_sandbox } from './utils/sandbox.js'; +import { loadSettings } from './config/settings.js'; +import { themeManager } from './ui/themes/theme-manager.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); async function main() { const config = await loadCliConfig(); + const settings = loadSettings(config); + const theme = settings.getMerged().theme; + if (theme) { + themeManager.setActiveTheme(theme); + } + let input = config.getQuestion(); // hop into sandbox if we are outside and sandboxing is enabled @@ -41,6 +49,7 @@ async function main() { render( React.createElement(App, { config, + settings, cliVersion, }), ); |
