@julong/mono-rele2-utils 1.5.0 → 1.7.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/README.md
CHANGED
package/dist/cli.js
CHANGED
|
@@ -32,7 +32,7 @@ ${paramLines}`;
|
|
|
32
32
|
return "Available skills:\n\n" + sections.join("\n\n");
|
|
33
33
|
}
|
|
34
34
|
async function runCli(tools2) {
|
|
35
|
-
const [, , toolName, ...rawArgs] = process.argv;
|
|
35
|
+
const [, , cliName, toolName, ...rawArgs] = process.argv;
|
|
36
36
|
if (!toolName || !(toolName in tools2)) {
|
|
37
37
|
if (toolName) console.error(`Unknown skill: "${toolName}"
|
|
38
38
|
`);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: mono-rele2-utils
|
|
2
|
+
name: mono-rele2-utils-cli
|
|
3
3
|
description: Use this skill to invoke text utility functions via the mono-rele2-utils CLI. Handles class name merging, case conversion, and text truncation.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# mono-rele2-utils
|
|
6
|
+
# mono-rele2-utils-cli
|
|
7
7
|
|
|
8
8
|
```sh
|
|
9
|
-
mono-rele2-utils <skillName> [...args]
|
|
9
|
+
mono-rele2-utils-cli <skillName> [...args]
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
## Skills
|
|
@@ -40,12 +40,12 @@ Truncates text to a maximum length and appends a suffix
|
|
|
40
40
|
|
|
41
41
|
## Examples
|
|
42
42
|
|
|
43
|
-
- `mono-rele2-utils cnTool '["btn","active","large"]'` => `btn active large`
|
|
44
|
-
- `mono-rele2-utils caseConvertTool "hello world" camel` => `helloWorld`
|
|
45
|
-
- `mono-rele2-utils caseConvertTool "helloWorld" snake` => `hello_world`
|
|
46
|
-
- `mono-rele2-utils caseConvertTool "hello world" kebab` => `hello-world`
|
|
47
|
-
- `mono-rele2-utils truncateTool "hello world long text" 10` => `hello w...`
|
|
48
|
-
- `mono-rele2-utils truncateTool "hello world" 8 "…"` => `hello w…`
|
|
43
|
+
- `mono-rele2-utils-cli cnTool '["btn","active","large"]'` => `btn active large`
|
|
44
|
+
- `mono-rele2-utils-cli caseConvertTool "hello world" camel` => `helloWorld`
|
|
45
|
+
- `mono-rele2-utils-cli caseConvertTool "helloWorld" snake` => `hello_world`
|
|
46
|
+
- `mono-rele2-utils-cli caseConvertTool "hello world" kebab` => `hello-world`
|
|
47
|
+
- `mono-rele2-utils-cli truncateTool "hello world long text" 10` => `hello w...`
|
|
48
|
+
- `mono-rele2-utils-cli truncateTool "hello world" 8 "…"` => `hello w…`
|
|
49
49
|
|
|
50
50
|
## Guidelines
|
|
51
51
|
|
|
@@ -53,4 +53,4 @@ Truncates text to a maximum length and appends a suffix
|
|
|
53
53
|
- Numeric args are auto-parsed — pass as plain numbers (e.g. `10`)
|
|
54
54
|
- Array args must be valid JSON — wrap in single quotes on Unix shells (e.g. `'["a","b"]'`)
|
|
55
55
|
- Optional args with defaults may be omitted
|
|
56
|
-
- Run `mono-rele2-utils` with no args to list all available skills
|
|
56
|
+
- Run `mono-rele2-utils-cli` with no args to list all available skills
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@julong/mono-rele2-utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "Use this skill to invoke text utility functions via the mono-rele2-utils CLI. Handles class name merging, case conversion, and text truncation.",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"type": "module",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"bin": {
|
|
14
|
-
"
|
|
15
|
-
"mono-rele2-utils": "./dist/cli.js"
|
|
14
|
+
"mono-rele2-utils": "./dist/server.js",
|
|
15
|
+
"mono-rele2-utils-cli": "./dist/cli.js"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
18
|
"dist"
|