LaunchNames returns the enabled tools' CLI binary names (deduplicated and sorted). This is the canonical list of binaries `cam launch` and the interactive menu present to the user.
()
| 148 | // sorted). This is the canonical list of binaries `cam launch` and the |
| 149 | // interactive menu present to the user. |
| 150 | func (r *Registry) LaunchNames() []string { |
| 151 | seen := map[string]struct{}{} |
| 152 | out := []string{} |
| 153 | for _, name := range r.EnabledNames() { |
| 154 | bin := r.Tools[name].LaunchCommand() |
| 155 | if _, ok := seen[bin]; ok { |
| 156 | continue |
| 157 | } |
| 158 | seen[bin] = struct{}{} |
| 159 | out = append(out, bin) |
| 160 | } |
| 161 | sort.Strings(out) |
| 162 | return out |
| 163 | } |