MCPcopy Create free account
hub / github.com/google-gemini/gemini-cli / extractFile

Function extractFile

packages/cli/src/config/extensions/github.ts:564–575  ·  view source on GitHub ↗
(file: string, dest: string)

Source from the content-addressed store, hash-verified

562}
563
564export async function extractFile(file: string, dest: string): Promise<void> {
565 if (file.endsWith('.tar.gz')) {
566 await tar.x({
567 file,
568 cwd: dest,
569 });
570 } else if (file.endsWith('.zip')) {
571 await extract(file, { dir: dest });
572 } else {
573 throw new Error(`Unsupported file extension for extraction: ${file}`);
574 }
575}

Callers 2

github.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected