feat: auto-complete app and recipe names #89
Reference in New Issue
Block a user
No description provided.
Delete Branch "knoflook/abra:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@decentral1se in #83
here it is. I only set it for a couple commands and still would like to discuss #87 but yeah, app/recipe name autocompletion is there!
Wowza 🥇
@ -36,2 +38,4 @@return nil},BashComplete: func(c *cli.Context) {appNames, err := config.GetDeployedApps()Given coop-cloud/abra#87 (comment) I guess we can just do
config.GetAppsNamesand call it a day?@ -177,6 +177,46 @@ func GetApps(appFiles AppFiles) ([]App, error) {return apps, nil}func GetAppsNames() ([]string, error) {Maybe a nitpick but
GetAppNamesis easier to say 😀 (ignore ofc if you don't mind it)@ -180,0 +180,4 @@func GetAppsNames() ([]string, error) {appFiles, err := LoadAppFiles("")if err != nil {return nil, errreturn []string{}, errto pass an empty list and avoid nil errors somewhere else?@ -180,0 +195,4 @@return appNames, nil}func GetDeployedApps() ([]string, error) {Yeah I guess we don't need this now but maybe keep it?
idk, could also just end up lurking there without being used 🤔
It's simple enought to rewrite so might as well get rid of it