omz2cc 0.1.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/omz2cc.js +40 -0
- package/package.json +25 -0
package/bin/omz2cc.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { execFileSync } = require("child_process");
|
|
4
|
+
const path = require("path");
|
|
5
|
+
|
|
6
|
+
const PLATFORMS = {
|
|
7
|
+
"linux x64": "@omz2cc/linux-x64-gnu",
|
|
8
|
+
"darwin x64": "@omz2cc/darwin-x64",
|
|
9
|
+
"darwin arm64": "@omz2cc/darwin-arm64",
|
|
10
|
+
"linux arm64": "@omz2cc/linux-arm64-gnu",
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const key = `${process.platform} ${process.arch}`;
|
|
14
|
+
const pkg = PLATFORMS[key];
|
|
15
|
+
|
|
16
|
+
if (!pkg) {
|
|
17
|
+
console.error(`Unsupported platform: ${process.platform} ${process.arch}`);
|
|
18
|
+
process.exit(1);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
let binPath;
|
|
22
|
+
try {
|
|
23
|
+
binPath = path.join(require.resolve(`${pkg}/package.json`), "..", "omz2cc");
|
|
24
|
+
} catch {
|
|
25
|
+
console.error(
|
|
26
|
+
`Could not find package ${pkg}. Make sure optional dependencies were installed.`
|
|
27
|
+
);
|
|
28
|
+
process.exit(1);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
try {
|
|
32
|
+
execFileSync(binPath, process.argv.slice(2), {
|
|
33
|
+
stdio: "inherit",
|
|
34
|
+
});
|
|
35
|
+
} catch (e) {
|
|
36
|
+
if (e.status !== null) {
|
|
37
|
+
process.exit(e.status);
|
|
38
|
+
}
|
|
39
|
+
throw e;
|
|
40
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "omz2cc",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Bring your oh-my-zsh theme to Claude Code — 142 themes built in",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"bin": {
|
|
7
|
+
"omz2cc": "bin/omz2cc.js"
|
|
8
|
+
},
|
|
9
|
+
"optionalDependencies": {
|
|
10
|
+
"@omz2cc/linux-x64-gnu": "0.1.0",
|
|
11
|
+
"@omz2cc/linux-arm64-gnu": "0.1.0",
|
|
12
|
+
"@omz2cc/darwin-x64": "0.1.0",
|
|
13
|
+
"@omz2cc/darwin-arm64": "0.1.0"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/mikemcbride/omz2cc.git"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"claude-code",
|
|
21
|
+
"oh-my-zsh",
|
|
22
|
+
"status-line",
|
|
23
|
+
"themes"
|
|
24
|
+
]
|
|
25
|
+
}
|