Save settings to ~/.gemini/settings.json and optionally /your/workspace/.gemini/settings.json (#237)

This commit is contained in:
Jacob Richman
2025-05-01 10:34:07 -07:00
committed by GitHub
parent a18eea8c23
commit 7e8f379dfb
7 changed files with 284 additions and 36 deletions

View File

@@ -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,
}),
);