fix: replace branding keywords to avoid ambiguity
This commit is contained in:
parent
9df193ca42
commit
f599cda7d2
8 changed files with 18 additions and 18 deletions
|
|
@ -14,7 +14,7 @@ import { enableCommand } from './extensions/enable.js';
|
||||||
|
|
||||||
export const extensionsCommand: CommandModule = {
|
export const extensionsCommand: CommandModule = {
|
||||||
command: 'extensions <command>',
|
command: 'extensions <command>',
|
||||||
describe: 'Manage Gemini CLI extensions.',
|
describe: 'Manage Qwen Code extensions.',
|
||||||
builder: (yargs) =>
|
builder: (yargs) =>
|
||||||
yargs
|
yargs
|
||||||
.command(installCommand)
|
.command(installCommand)
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ describe('FolderTrustDialog', () => {
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(lastFrame()).toContain(
|
expect(lastFrame()).toContain(
|
||||||
'To see changes, Gemini CLI must be restarted',
|
'To see changes, Qwen Code must be restarted',
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ export const FolderTrustDialog: React.FC<FolderTrustDialogProps> = ({
|
||||||
<Box flexDirection="column" marginBottom={1}>
|
<Box flexDirection="column" marginBottom={1}>
|
||||||
<Text bold>Do you trust this folder?</Text>
|
<Text bold>Do you trust this folder?</Text>
|
||||||
<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
|
This is a security feature to prevent accidental execution in
|
||||||
untrusted directories.
|
untrusted directories.
|
||||||
</Text>
|
</Text>
|
||||||
|
|
@ -88,7 +88,7 @@ export const FolderTrustDialog: React.FC<FolderTrustDialogProps> = ({
|
||||||
{isRestarting && (
|
{isRestarting && (
|
||||||
<Box marginLeft={1} marginTop={1}>
|
<Box marginLeft={1} marginTop={1}>
|
||||||
<Text color={Colors.AccentYellow}>
|
<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.
|
apply changes now.
|
||||||
</Text>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
|
||||||
|
|
@ -429,7 +429,7 @@ describe('SettingsDialog', () => {
|
||||||
<KeypressProvider kittyProtocolEnabled={false}>
|
<KeypressProvider kittyProtocolEnabled={false}>
|
||||||
<SettingsDialog
|
<SettingsDialog
|
||||||
settings={settings}
|
settings={settings}
|
||||||
onSelect={() => {}}
|
onSelect={() => { }}
|
||||||
onRestartRequest={onRestartRequest}
|
onRestartRequest={onRestartRequest}
|
||||||
/>
|
/>
|
||||||
</KeypressProvider>,
|
</KeypressProvider>,
|
||||||
|
|
@ -450,7 +450,7 @@ describe('SettingsDialog', () => {
|
||||||
<KeypressProvider kittyProtocolEnabled={false}>
|
<KeypressProvider kittyProtocolEnabled={false}>
|
||||||
<SettingsDialog
|
<SettingsDialog
|
||||||
settings={settings}
|
settings={settings}
|
||||||
onSelect={() => {}}
|
onSelect={() => { }}
|
||||||
onRestartRequest={onRestartRequest}
|
onRestartRequest={onRestartRequest}
|
||||||
/>
|
/>
|
||||||
</KeypressProvider>,
|
</KeypressProvider>,
|
||||||
|
|
@ -678,7 +678,7 @@ describe('SettingsDialog', () => {
|
||||||
|
|
||||||
// Should not show restart prompt initially
|
// Should not show restart prompt initially
|
||||||
expect(lastFrame()).not.toContain(
|
expect(lastFrame()).not.toContain(
|
||||||
'To see changes, Gemini CLI must be restarted',
|
'To see changes, Qwen Code must be restarted',
|
||||||
);
|
);
|
||||||
|
|
||||||
unmount();
|
unmount();
|
||||||
|
|
@ -973,7 +973,7 @@ describe('SettingsDialog', () => {
|
||||||
<KeypressProvider kittyProtocolEnabled={false}>
|
<KeypressProvider kittyProtocolEnabled={false}>
|
||||||
<SettingsDialog
|
<SettingsDialog
|
||||||
settings={settings}
|
settings={settings}
|
||||||
onSelect={() => {}}
|
onSelect={() => { }}
|
||||||
onRestartRequest={onRestartRequest}
|
onRestartRequest={onRestartRequest}
|
||||||
/>
|
/>
|
||||||
</KeypressProvider>,
|
</KeypressProvider>,
|
||||||
|
|
|
||||||
|
|
@ -544,16 +544,16 @@ export function SettingsDialog({
|
||||||
? defaultValue
|
? defaultValue
|
||||||
: false
|
: false
|
||||||
: typeof defaultValue === 'number' ||
|
: typeof defaultValue === 'number' ||
|
||||||
typeof defaultValue === 'string'
|
typeof defaultValue === 'string'
|
||||||
? defaultValue
|
? defaultValue
|
||||||
: undefined;
|
: undefined;
|
||||||
const immediateSettingsObject =
|
const immediateSettingsObject =
|
||||||
toSaveValue !== undefined
|
toSaveValue !== undefined
|
||||||
? setPendingSettingValueAny(
|
? setPendingSettingValueAny(
|
||||||
currentSetting.value,
|
currentSetting.value,
|
||||||
toSaveValue,
|
toSaveValue,
|
||||||
{} as Settings,
|
{} as Settings,
|
||||||
)
|
)
|
||||||
: ({} as Settings);
|
: ({} as Settings);
|
||||||
|
|
||||||
saveModifiedSettings(
|
saveModifiedSettings(
|
||||||
|
|
@ -780,7 +780,7 @@ export function SettingsDialog({
|
||||||
</Text>
|
</Text>
|
||||||
{showRestartPrompt && (
|
{showRestartPrompt && (
|
||||||
<Text color={Colors.AccentYellow}>
|
<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.
|
apply changes now.
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ export function WorkspaceMigrationDialog(props: {
|
||||||
<>
|
<>
|
||||||
<Text>
|
<Text>
|
||||||
The following extensions failed to migrate. Please try installing
|
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.
|
Press {"'q'"} to quit.
|
||||||
</Text>
|
</Text>
|
||||||
<Box flexDirection="column" marginTop={1} marginLeft={2}>
|
<Box flexDirection="column" marginTop={1} marginLeft={2}>
|
||||||
|
|
@ -58,7 +58,7 @@ export function WorkspaceMigrationDialog(props: {
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<Text>
|
<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.
|
Press {"'q'"} to quit.
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,7 @@ describe('GitService', () => {
|
||||||
await service.setupShadowGitRepository();
|
await service.setupShadowGitRepository();
|
||||||
|
|
||||||
const expectedConfigContent =
|
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');
|
const actualConfigContent = await fs.readFile(gitConfigPath, 'utf-8');
|
||||||
expect(actualConfigContent).toBe(expectedConfigContent);
|
expect(actualConfigContent).toBe(expectedConfigContent);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ export class GitService {
|
||||||
// We don't want to inherit the user's name, email, or gpg signing
|
// 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.
|
// preferences for the shadow repository, so we create a dedicated gitconfig.
|
||||||
const gitConfigContent =
|
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);
|
await fs.writeFile(gitConfigPath, gitConfigContent);
|
||||||
|
|
||||||
const repo = simpleGit(repoDir);
|
const repo = simpleGit(repoDir);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue