Components returns sorted list of published repo components
()
| 640 | |
| 641 | // Components returns sorted list of published repo components |
| 642 | func (p *PublishedRepo) Components() []string { |
| 643 | result := make([]string, 0, len(p.Sources)) |
| 644 | for component := range p.Sources { |
| 645 | result = append(result, component) |
| 646 | } |
| 647 | |
| 648 | sort.Strings(result) |
| 649 | return result |
| 650 | } |
| 651 | |
| 652 | // SourceNames returns sorted list of published repo source names |
| 653 | func (p *PublishedRepo) SourceNames() []string { |