feat: autocomplete for app cp app names
continuous-integration/drone/push Build is passing Details

This commit is contained in:
decentral1se 2021-11-13 22:50:32 +01:00
parent 751b187df6
commit ecba4e01f1
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 12 additions and 0 deletions

View File

@ -139,4 +139,16 @@ And if you want to copy that file back to your current working directory locally
}
return nil
},
BashComplete: func(c *cli.Context) {
appNames, err := config.GetAppNames()
if err != nil {
logrus.Warn(err)
}
if c.NArg() > 0 {
return
}
for _, a := range appNames {
fmt.Println(a)
}
},
}