mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-10 22:21:22 -07:00
Add gemini extensions link command (#7241)
Co-authored-by: Bryan Morgan <bryanmorgan@google.com>
This commit is contained in:
@@ -53,4 +53,25 @@ if (!fs.existsSync(sourceDir)) {
|
||||
}
|
||||
|
||||
copyFilesRecursive(sourceDir, targetDir);
|
||||
|
||||
// Copy example extensions into the bundle.
|
||||
const packageName = path.basename(process.cwd());
|
||||
if (packageName === 'cli') {
|
||||
const examplesSource = path.join(
|
||||
sourceDir,
|
||||
'commands',
|
||||
'extensions',
|
||||
'examples',
|
||||
);
|
||||
const examplesTarget = path.join(
|
||||
targetDir,
|
||||
'commands',
|
||||
'extensions',
|
||||
'examples',
|
||||
);
|
||||
if (fs.existsSync(examplesSource)) {
|
||||
fs.cpSync(examplesSource, examplesTarget, { recursive: true });
|
||||
}
|
||||
}
|
||||
|
||||
console.log('Successfully copied files.');
|
||||
|
||||
Reference in New Issue
Block a user