MCPcopy Create free account
hub / github.com/diillson/chatcli / showInstallResult

Method showInstallResult

cli/skill_handler.go:434–455  ·  view source on GitHub ↗
(result *registry.InstallResult)

Source from the content-addressed store, hash-verified

432}
433
434func (sh *SkillHandler) showInstallResult(result *registry.InstallResult) {
435 action := i18n.T("skill.install.result_installed")
436 if result.WasDuplicate {
437 action = i18n.T("skill.install.result_updated")
438 }
439
440 fmt.Printf(" %s %s", colorize(action, ColorGreen), colorize(result.Name, ColorCyan))
441 if result.Version != "" {
442 fmt.Printf(" v%s", result.Version)
443 }
444 fmt.Printf(" %s %s\n", i18n.T("skill.install.from"), colorize(result.Source, ColorGray))
445 fmt.Printf(" %s: %s\n", i18n.T("skill.install.path"), colorize(result.InstallPath, ColorGray))
446 fmt.Printf("\n %s\n", i18n.T("skill.install.available", result.Name))
447 fmt.Printf(" %s: %s\n\n", i18n.T("skill.install.verify"), colorize("/agent skills", ColorCyan))
448
449 // Refresh persona loader to pick up new skill
450 if sh.personaMgr != nil {
451 if _, err := sh.personaMgr.RefreshSkills(); err != nil {
452 fmt.Printf(" %s %s: %v\n", colorize(i18n.T("skill.warning")+":", ColorYellow), i18n.T("skill.refresh_failed"), err)
453 }
454 }
455}
456
457// Uninstall removes an installed skill.
458// Supports both exact names ("anthropics-skills--frontend-design") and

Callers 1

InstallMethod · 0.95

Calls 3

TFunction · 0.92
colorizeFunction · 0.85
RefreshSkillsMethod · 0.80

Tested by

no test coverage detected