forked from toolshed/abra
		
	feat: autocomplete for app cp app names
This commit is contained in:
		| @ -139,4 +139,16 @@ And if you want to copy that file back to your current working directory locally | |||||||
| 		} | 		} | ||||||
| 		return nil | 		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) | ||||||
|  | 		} | ||||||
|  | 	}, | ||||||
| } | } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user