mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
feat(ui): add Audit Findings section label for single-skill install/update
Adds visual separation before audit findings in single-skill output, matching the SectionLabel pattern used in batch mode.
This commit is contained in:
@@ -960,6 +960,11 @@ func renderInstallWarnings(skillName string, warnings []string, auditVerbose boo
|
||||
return
|
||||
}
|
||||
|
||||
// Visual separator for single-skill output (batch mode handles its own sections)
|
||||
if skillName == "" {
|
||||
ui.SectionLabel("Audit Findings")
|
||||
}
|
||||
|
||||
if auditVerbose {
|
||||
for _, warning := range warnings {
|
||||
ui.Warning("%s", formatWarningWithSkill(skillName, warning))
|
||||
|
||||
@@ -813,8 +813,11 @@ func updateRegularSkill(cfg *config.Config, skillName string, dryRun, force, ski
|
||||
|
||||
spinner.Success(fmt.Sprintf("Updated %s", skillName))
|
||||
|
||||
for _, warning := range result.Warnings {
|
||||
ui.Warning("%s", warning)
|
||||
if len(result.Warnings) > 0 {
|
||||
ui.SectionLabel("Audit Findings")
|
||||
for _, warning := range result.Warnings {
|
||||
ui.Warning("%s", warning)
|
||||
}
|
||||
}
|
||||
|
||||
renderUpdateAuditResult(result)
|
||||
|
||||
Reference in New Issue
Block a user