Skip to content

Commit de6f928

Browse files
committed
Address comments
1 parent 3a452ed commit de6f928

File tree

3 files changed

+0
-109
lines changed

3 files changed

+0
-109
lines changed

package-lock.json

Lines changed: 0 additions & 102 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
"rfc4648": "^1.3.0",
7272
"socks-proxy-agent": "^8.0.4",
7373
"stream-buffers": "^3.0.2",
74-
"tar": "^7.0.0",
7574
"tar-fs": "^3.0.8",
7675
"tmp-promise": "^3.0.2",
7776
"ws": "^8.18.0"

src/cp.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
import fs, { rmSync } from 'node:fs';
21
import { WritableStreamBuffer } from 'stream-buffers';
32
import tar from 'tar-fs';
4-
import tmp from 'tmp-promise';
5-
import path from 'node:path';
63

74
import { KubeConfig } from './config.js';
85
import { Exec } from './exec.js';
9-
import { getServers } from 'node:dns';
106

117
export class Cp {
128
public execInstance: Exec;
@@ -28,8 +24,6 @@ export class Cp {
2824
srcPath: string,
2925
tgtPath: string,
3026
): Promise<void> {
31-
const tmpFile = tmp.fileSync();
32-
const tmpFileName = tmpFile.name;
3327
const command = ['tar', 'zcf', '-', srcPath];
3428
const writerStream = tar.extract(tgtPath);
3529
const errStream = new WritableStreamBuffer();

0 commit comments

Comments
 (0)