Show repo name when prompting to select package

This commit is contained in:
Elara 2022-11-14 14:04:46 -08:00
parent 004358050c
commit 9298cf800f

View File

@ -146,7 +146,9 @@ func findPkg(pkg string) ([]string, error) {
func pkgPrompt(options []string) ([]string, error) {
names := make([]string, len(options))
for i, option := range options {
names[i] = filepath.Base(filepath.Dir(option))
pkgDir := filepath.Dir(option)
repoDir := filepath.Dir(pkgDir)
names[i] = filepath.Base(repoDir) + "/" + filepath.Base(pkgDir)
}
prompt := &survey.MultiSelect{