@ozyman42/ozy-cli 0.0.1 → 0.0.3
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/dist/index.js +11 -8
- package/package.json +9 -4
package/dist/index.js
CHANGED
|
@@ -2783,6 +2783,8 @@ var require_ssh_config2 = __commonJS((exports) => {
|
|
|
2783
2783
|
__exportStar(require_ssh_config(), exports);
|
|
2784
2784
|
exports.default = ssh_config_1.default;
|
|
2785
2785
|
});
|
|
2786
|
+
// package.json
|
|
2787
|
+
var version = "0.0.3";
|
|
2786
2788
|
|
|
2787
2789
|
// node_modules/commander/esm.mjs
|
|
2788
2790
|
var import__ = __toESM(require_commander(), 1);
|
|
@@ -3701,11 +3703,11 @@ function datetimeRegex(args) {
|
|
|
3701
3703
|
regex = `${regex}(${opts.join("|")})`;
|
|
3702
3704
|
return new RegExp(`^${regex}$`);
|
|
3703
3705
|
}
|
|
3704
|
-
function isValidIP(ip,
|
|
3705
|
-
if ((
|
|
3706
|
+
function isValidIP(ip, version2) {
|
|
3707
|
+
if ((version2 === "v4" || !version2) && ipv4Regex.test(ip)) {
|
|
3706
3708
|
return true;
|
|
3707
3709
|
}
|
|
3708
|
-
if ((
|
|
3710
|
+
if ((version2 === "v6" || !version2) && ipv6Regex.test(ip)) {
|
|
3709
3711
|
return true;
|
|
3710
3712
|
}
|
|
3711
3713
|
return false;
|
|
@@ -3728,11 +3730,11 @@ function isValidJWT(jwt, alg) {
|
|
|
3728
3730
|
return false;
|
|
3729
3731
|
}
|
|
3730
3732
|
}
|
|
3731
|
-
function isValidCidr(ip,
|
|
3732
|
-
if ((
|
|
3733
|
+
function isValidCidr(ip, version2) {
|
|
3734
|
+
if ((version2 === "v4" || !version2) && ipv4CidrRegex.test(ip)) {
|
|
3733
3735
|
return true;
|
|
3734
3736
|
}
|
|
3735
|
-
if ((
|
|
3737
|
+
if ((version2 === "v6" || !version2) && ipv6CidrRegex.test(ip)) {
|
|
3736
3738
|
return true;
|
|
3737
3739
|
}
|
|
3738
3740
|
return false;
|
|
@@ -8445,8 +8447,9 @@ var git = new Command("git").summary("setup git in repo for verified commits");
|
|
|
8445
8447
|
});
|
|
8446
8448
|
|
|
8447
8449
|
// src/commands/index.ts
|
|
8448
|
-
program.name("ozy")
|
|
8449
|
-
[git].forEach((cmd) => {
|
|
8450
|
+
program.name("ozy").version(version)[git].forEach((cmd) => {
|
|
8450
8451
|
program.addCommand(cmd);
|
|
8451
8452
|
});
|
|
8452
8453
|
program.parse();
|
|
8454
|
+
if (process.argv.length <= 2)
|
|
8455
|
+
program.help();
|
package/package.json
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ozyman42/ozy-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Ozymandias' personal tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"ozy": "
|
|
7
|
+
"ozy": "dist/index.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "bun src/scripts/build.ts",
|
|
14
|
-
"
|
|
14
|
+
"prepublishOnly": "bun run build",
|
|
15
|
+
"prepare": "[ \"$CI\" = \"true\" ] || lefthook install"
|
|
16
|
+
},
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public",
|
|
19
|
+
"provenance": true
|
|
15
20
|
},
|
|
16
21
|
"devDependencies": {
|
|
17
22
|
"@types/bun": "^1.1.14",
|
|
@@ -21,7 +26,7 @@
|
|
|
21
26
|
},
|
|
22
27
|
"repository": {
|
|
23
28
|
"type": "git",
|
|
24
|
-
"url": "https://github.com/ozyman42/ozy-cli.git"
|
|
29
|
+
"url": "git+https://github.com/ozyman42/ozy-cli.git"
|
|
25
30
|
},
|
|
26
31
|
"dependencies": {
|
|
27
32
|
"commander": "^13.1.0",
|