avd-manager-cli 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/avdm-linux ADDED
Binary file
package/bin/avdm-macos ADDED
Binary file
Binary file
package/index.js ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+ const os = require("os");
3
+ const path = require("path");
4
+ const { spawn } = require("child_process");
5
+
6
+ const platform = os.platform();
7
+ let binary = "";
8
+
9
+ if (platform === "darwin") binary = "avdm-macos";
10
+ else if (platform === "win32") binary = "avdm-win.exe";
11
+ else binary = "avdm-linux";
12
+
13
+ const binPath = path.join(__dirname, "bin", binary);
14
+
15
+ const child = spawn(binPath, process.argv.slice(2), { stdio: "inherit" });
16
+ child.on("exit", (code) => process.exit(code));
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "avd-manager-cli",
3
+ "version": "1.0.0",
4
+ "bin": {
5
+ "avdm": "index.js"
6
+ },
7
+ "files": [
8
+ "index.js",
9
+ "bin/"
10
+ ],
11
+ "os": [
12
+ "darwin",
13
+ "linux",
14
+ "win32"
15
+ ]
16
+ }