Removing "friendly" machine name from prompt

Currently the options end up as `Basic` through to `X`. No other client
provides these types of names, so we should just show machine info.
This commit is contained in:
Mike McDonald 2021-10-15 21:56:17 +00:00 committed by GitHub
parent 06c06c87dc
commit 21ff083b9b

View file

@ -266,9 +266,7 @@ func getMachineName(ctx context.Context, apiClient apiClient, repoID int, machin
machineNames := make([]string, 0, len(machines))
machineByName := make(map[string]*api.Machine)
for _, m := range machines {
nameParts := camelcase.Split(m.Name)
machineName := strings.Title(strings.ToLower(nameParts[0]))
machineName = fmt.Sprintf("%s - %s", machineName, m.DisplayName)
machineName: = m.DisplayName
machineNames = append(machineNames, machineName)
machineByName[machineName] = m
}