itismyskillmarket 1.2.0 → 1.2.1
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 +6 -3
- package/package.json +1 -1
- package/src/cli.ts +8 -8
package/dist/index.js
CHANGED
|
@@ -490,8 +490,9 @@ async function uninstallSkill(skillId) {
|
|
|
490
490
|
|
|
491
491
|
// src/cli.ts
|
|
492
492
|
var program = new Command();
|
|
493
|
-
program.name("skm").description("SkillMarket - Cross-platform skill manager for AI coding tools").version("1.
|
|
494
|
-
program.
|
|
493
|
+
program.name("skm").description("SkillMarket - Cross-platform skill manager for AI coding tools").version("1.2.0");
|
|
494
|
+
var helpCmd = program.command("help").description("Display help information");
|
|
495
|
+
helpCmd.action(() => {
|
|
495
496
|
console.log(`
|
|
496
497
|
SkillMarket CLI
|
|
497
498
|
|
|
@@ -519,9 +520,11 @@ Examples:
|
|
|
519
520
|
skm --install brainstorming Install a skill
|
|
520
521
|
skm --install brainstorming@1.0.0 Install specific version
|
|
521
522
|
skm --update --all Update all installed skills
|
|
523
|
+
skm --sync Sync platform links
|
|
522
524
|
`);
|
|
523
525
|
});
|
|
524
|
-
program.
|
|
526
|
+
var lsCmd = program.command("ls").description("List available skills");
|
|
527
|
+
lsCmd.option("--installed", "Show only installed skills").option("--updates", "Check for updates").action((opts) => {
|
|
525
528
|
listSkills(opts);
|
|
526
529
|
});
|
|
527
530
|
var infoCmd = program.command("info").description("Display skill information");
|
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -63,7 +63,7 @@ const program = new Command();
|
|
|
63
63
|
program
|
|
64
64
|
.name('skm')
|
|
65
65
|
.description('SkillMarket - Cross-platform skill manager for AI coding tools')
|
|
66
|
-
.version('1.
|
|
66
|
+
.version('1.2.0');
|
|
67
67
|
|
|
68
68
|
// -----------------------------------------------------------------------------
|
|
69
69
|
// 帮助命令 (-h, --help)
|
|
@@ -74,10 +74,9 @@ program
|
|
|
74
74
|
*
|
|
75
75
|
* 显示详细的使用说明和命令示例
|
|
76
76
|
*/
|
|
77
|
-
program
|
|
78
|
-
|
|
79
|
-
.
|
|
80
|
-
console.log(`
|
|
77
|
+
const helpCmd = program.command('help').description('Display help information');
|
|
78
|
+
helpCmd.action(() => {
|
|
79
|
+
console.log(`
|
|
81
80
|
SkillMarket CLI
|
|
82
81
|
|
|
83
82
|
Usage: skm <command> [options]
|
|
@@ -104,8 +103,9 @@ Examples:
|
|
|
104
103
|
skm --install brainstorming Install a skill
|
|
105
104
|
skm --install brainstorming@1.0.0 Install specific version
|
|
106
105
|
skm --update --all Update all installed skills
|
|
106
|
+
skm --sync Sync platform links
|
|
107
107
|
`);
|
|
108
|
-
|
|
108
|
+
});
|
|
109
109
|
|
|
110
110
|
// -----------------------------------------------------------------------------
|
|
111
111
|
// 列表命令 (skm ls)
|
|
@@ -121,8 +121,8 @@ Examples:
|
|
|
121
121
|
* - skm ls --installed 列出已安装的 skills
|
|
122
122
|
* - skm ls --updates 检查更新
|
|
123
123
|
*/
|
|
124
|
-
program
|
|
125
|
-
|
|
124
|
+
const lsCmd = program.command('ls').description('List available skills');
|
|
125
|
+
lsCmd
|
|
126
126
|
.option('--installed', 'Show only installed skills')
|
|
127
127
|
.option('--updates', 'Check for updates')
|
|
128
128
|
.action((opts) => {
|