mirror of
https://github.com/iflytek/skillhub.git
synced 2026-09-12 23:01:05 +00:00
docs(cli): clarify suite registry compatibility
Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
This commit is contained in:
parent
496e60e08a
commit
a062c8f34a
3 changed files with 12 additions and 2 deletions
|
|
@ -46,7 +46,7 @@ export const commands = {
|
|||
]
|
||||
},
|
||||
suite: {
|
||||
summary: 'Install and manage a Skill Suite locally',
|
||||
summary: 'Manage Skill Suites on compatible registries',
|
||||
usage: 'skillhub suite <install|check|upgrade|remove> <coordinate> [options]',
|
||||
examples: [
|
||||
'skillhub suite install @global/marketing --scope user',
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ cli
|
|||
})
|
||||
|
||||
cli
|
||||
.command('suite <action> <coordinate>', 'Install and manage a Skill Suite locally')
|
||||
.command('suite <action> <coordinate>', 'Manage Skill Suites on compatible registries')
|
||||
.option('--version <v>', 'Exact Suite version for install')
|
||||
.option('--scope <scope>', 'Install scope: user or project')
|
||||
.option('--agent <profile>', 'Agent profile (repeatable)')
|
||||
|
|
|
|||
|
|
@ -37,6 +37,16 @@ describe('help command', () => {
|
|||
expect(result.stdout).toContain('skillhub search')
|
||||
})
|
||||
|
||||
test('states that Suite commands require a compatible registry', async () => {
|
||||
const topic = await runCli(['help', 'suite'])
|
||||
expect(topic.exitCode).toBe(0)
|
||||
expect(topic.stdout).toContain('Manage Skill Suites on compatible registries')
|
||||
|
||||
const root = await runCli(['--help'])
|
||||
expect(root.exitCode).toBe(0)
|
||||
expect(root.stdout).toContain('Manage Skill Suites on compatible registries')
|
||||
})
|
||||
|
||||
test('distinguishes skill upgrade from CLI self-update and namespace sync', async () => {
|
||||
const upgrade = await runCli(['help', 'upgrade'])
|
||||
expect(upgrade.exitCode).toBe(0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue