ez-mux 0.2.7
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/README.md +13 -0
- package/bin/darwin-arm64/ezm +0 -0
- package/bin/darwin-x64/ezm +0 -0
- package/bin/ezm.js +25 -0
- package/bin/linux-arm64/ezm +0 -0
- package/bin/linux-x64/ezm +0 -0
- package/package.json +31 -0
package/README.md
ADDED
|
Binary file
|
|
Binary file
|
package/bin/ezm.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const { spawnSync } = require('node:child_process')
|
|
3
|
+
const path = require('node:path')
|
|
4
|
+
|
|
5
|
+
const target = `${process.platform}-${process.arch}`
|
|
6
|
+
const map = {
|
|
7
|
+
'linux-x64': 'linux-x64',
|
|
8
|
+
'linux-arm64': 'linux-arm64',
|
|
9
|
+
'darwin-x64': 'darwin-x64',
|
|
10
|
+
'darwin-arm64': 'darwin-arm64',
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const variant = map[target]
|
|
14
|
+
if (!variant) {
|
|
15
|
+
console.error(`ez-mux does not support platform ${target}`)
|
|
16
|
+
process.exit(1)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const binaryPath = path.join(__dirname, variant, 'ezm')
|
|
20
|
+
const result = spawnSync(binaryPath, process.argv.slice(2), { stdio: 'inherit' })
|
|
21
|
+
if (result.error) {
|
|
22
|
+
console.error(result.error.message)
|
|
23
|
+
process.exit(1)
|
|
24
|
+
}
|
|
25
|
+
process.exit(result.status ?? 1)
|
|
Binary file
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ez-mux",
|
|
3
|
+
"version": "0.2.7",
|
|
4
|
+
"description": "Deterministic tmux workspace orchestrator",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/shanebishop1/ez-mux.git"
|
|
9
|
+
},
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/shanebishop1/ez-mux/issues"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/shanebishop1/ez-mux#readme",
|
|
14
|
+
"bin": {
|
|
15
|
+
"ezm": "bin/ezm.js"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"bin/ezm.js",
|
|
19
|
+
"bin/linux-x64/ezm",
|
|
20
|
+
"bin/linux-arm64/ezm",
|
|
21
|
+
"bin/darwin-x64/ezm",
|
|
22
|
+
"bin/darwin-arm64/ezm",
|
|
23
|
+
"README.md"
|
|
24
|
+
],
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=18"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
}
|
|
31
|
+
}
|