Skip to content

Commit

Permalink
fix(src): cli
Browse files Browse the repository at this point in the history
  • Loading branch information
snomiao committed Jan 29, 2023
1 parent a49c5ed commit e70e365
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env node
import aswitcher from "aswitcher";
import snorun from "snorun";
import workPackageDir from "work-package-dir";

aswitcher(process.platform, {
aix: () => console.log("not supported"),
android: () => console.log("not supported"),
darwin: () => console.log("not supported"),
freebsd: () => console.log("not supported"),
haiku: () => console.log("not supported"),
linux: () => console.log("not supported"),
openbsd: () => console.log("not supported"),
sunos: () => console.log("not supported"),
win32: async () => {
await workPackageDir();
await snorun("tools/install.bat");
},
cygwin: () => console.log("not supported"),
netbsd: () => console.log("not supported"),
});

0 comments on commit e70e365

Please sign in to comment.