fix: replace branding keywords to avoid ambiguity

This commit is contained in:
Mingholy
2025-09-16 19:57:33 +08:00
parent 9df193ca42
commit f599cda7d2
8 changed files with 18 additions and 18 deletions

View File

@@ -14,7 +14,7 @@ import { enableCommand } from './extensions/enable.js';
export const extensionsCommand: CommandModule = {
command: 'extensions <command>',
describe: 'Manage Gemini CLI extensions.',
describe: 'Manage Qwen Code extensions.',
builder: (yargs) =>
yargs
.command(installCommand)

View File

@@ -66,7 +66,7 @@ describe('FolderTrustDialog', () => {
);
expect(lastFrame()).toContain(
'To see changes, Gemini CLI must be restarted',
'To see changes, Qwen Code must be restarted',
);
});

View File

@@ -73,7 +73,7 @@ export const FolderTrustDialog: React.FC<FolderTrustDialogProps> = ({
<Box flexDirection="column" marginBottom={1}>
<Text bold>Do you trust this folder?</Text>
<Text>
Trusting a folder allows Gemini to execute commands it suggests.
Trusting a folder allows Qwen Code to execute commands it suggests.
This is a security feature to prevent accidental execution in
untrusted directories.
</Text>
@@ -88,7 +88,7 @@ export const FolderTrustDialog: React.FC<FolderTrustDialogProps> = ({
{isRestarting && (
<Box marginLeft={1} marginTop={1}>
<Text color={Colors.AccentYellow}>
To see changes, Gemini CLI must be restarted. Press r to exit and
To see changes, Qwen Code must be restarted. Press r to exit and
apply changes now.
</Text>
</Box>

View File

@@ -429,7 +429,7 @@ describe('SettingsDialog', () => {
<KeypressProvider kittyProtocolEnabled={false}>
<SettingsDialog
settings={settings}
onSelect={() => {}}
onSelect={() => { }}
onRestartRequest={onRestartRequest}
/>
</KeypressProvider>,
@@ -450,7 +450,7 @@ describe('SettingsDialog', () => {
<KeypressProvider kittyProtocolEnabled={false}>
<SettingsDialog
settings={settings}
onSelect={() => {}}
onSelect={() => { }}
onRestartRequest={onRestartRequest}
/>
</KeypressProvider>,
@@ -678,7 +678,7 @@ describe('SettingsDialog', () => {
// Should not show restart prompt initially
expect(lastFrame()).not.toContain(
'To see changes, Gemini CLI must be restarted',
'To see changes, Qwen Code must be restarted',
);
unmount();
@@ -973,7 +973,7 @@ describe('SettingsDialog', () => {
<KeypressProvider kittyProtocolEnabled={false}>
<SettingsDialog
settings={settings}
onSelect={() => {}}
onSelect={() => { }}
onRestartRequest={onRestartRequest}
/>
</KeypressProvider>,

View File

@@ -780,7 +780,7 @@ export function SettingsDialog({
</Text>
{showRestartPrompt && (
<Text color={Colors.AccentYellow}>
To see changes, Gemini CLI must be restarted. Press r to exit and
To see changes, Qwen Code must be restarted. Press r to exit and
apply changes now.
</Text>
)}

View File

@@ -47,7 +47,7 @@ export function WorkspaceMigrationDialog(props: {
<>
<Text>
The following extensions failed to migrate. Please try installing
them manually. To see other changes, Gemini CLI must be restarted.
them manually. To see other changes, Qwen Code must be restarted.
Press {"'q'"} to quit.
</Text>
<Box flexDirection="column" marginTop={1} marginLeft={2}>
@@ -58,7 +58,7 @@ export function WorkspaceMigrationDialog(props: {
</>
) : (
<Text>
Migration complete. To see changes, Gemini CLI must be restarted.
Migration complete. To see changes, Qwen Code must be restarted.
Press {"'q'"} to quit.
</Text>
)}

View File

@@ -176,7 +176,7 @@ describe('GitService', () => {
await service.setupShadowGitRepository();
const expectedConfigContent =
'[user]\n name = Gemini CLI\n email = gemini-cli@google.com\n[commit]\n gpgsign = false\n';
'[user]\n name = Qwen Code\n email = gemini-cli@google.com\n[commit]\n gpgsign = false\n';
const actualConfigContent = await fs.readFile(gitConfigPath, 'utf-8');
expect(actualConfigContent).toBe(expectedConfigContent);
});

View File

@@ -65,7 +65,7 @@ export class GitService {
// We don't want to inherit the user's name, email, or gpg signing
// preferences for the shadow repository, so we create a dedicated gitconfig.
const gitConfigContent =
'[user]\n name = Gemini CLI\n email = gemini-cli@google.com\n[commit]\n gpgsign = false\n';
'[user]\n name = Qwen Code\n email = qwen-code@qwen.ai\n[commit]\n gpgsign = false\n';
await fs.writeFile(gitConfigPath, gitConfigContent);
const repo = simpleGit(repoDir);