| 73 | } |
| 74 | |
| 75 | func skillListBundle(items []skillListItem) outputBundle { |
| 76 | return listBundle( |
| 77 | items, |
| 78 | items, |
| 79 | "Skills", |
| 80 | []string{automationNameValue, skillOutputDescriptionValue, authoredContextSourceValue, skillOutputEnabledValue}, |
| 81 | "skills", |
| 82 | []string{automationNameKey, skillOutputDescriptionKey, automationSourceKey, skillOutputEnabledKey}, |
| 83 | func(item skillListItem) []string { |
| 84 | return []string{ |
| 85 | stringOrDash(item.Name), |
| 86 | stringOrDash(item.Description), |
| 87 | stringOrDash(item.Source), |
| 88 | strconv.FormatBool(item.Enabled), |
| 89 | } |
| 90 | }, |
| 91 | func(item skillListItem) []string { |
| 92 | return []string{ |
| 93 | item.Name, |
| 94 | item.Description, |
| 95 | item.Source, |
| 96 | strconv.FormatBool(item.Enabled), |
| 97 | } |
| 98 | }, |
| 99 | ) |
| 100 | } |
| 101 | |
| 102 | func skillViewBundle(item skillViewItem, rendered string) outputBundle { |
| 103 | return outputBundle{ |