Skip to content

Commit c33d0b9

Browse files
committed
feat: v0.2.0
1 parent 932176e commit c33d0b9

File tree

3 files changed

+2
-18
lines changed

3 files changed

+2
-18
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ wsl --install -d Ubuntu-20.04
2222

2323
# Set user and password
2424
# Keep up to date
25+
wsl -d Ubuntu-20.04
2526
sudo apt update && sudo apt upgrade -y
2627

2728
# Add distrod to the GuestOS

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nerdctl",
3-
"version": "0.1.9",
3+
"version": "0.2.0",
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"description": "Node wrapper for nerdctl",

src/index.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,3 @@ export function factory(
2020
throw new Error(`OS "${platform}" is not supported.`);
2121
}
2222
}
23-
24-
async function test() {
25-
const vm = factory("wsl -u vmenv");
26-
console.log(await vm.getImages());
27-
const child = await vm.pullImage("hello-world");
28-
await new Promise((resolve, reject) => {
29-
child.stderr?.on("data", (data) => {
30-
console.log(data);
31-
});
32-
child.stdout?.on("close", () => {
33-
resolve(true);
34-
});
35-
});
36-
console.log(await vm.getImages());
37-
}
38-
39-
test();

0 commit comments

Comments
 (0)