forked from toolshed/abra
WIP another pass on the app new command
This commit is contained in:
@ -203,7 +203,7 @@ func GetAppStatuses(appFiles AppFiles) (map[string]string, error) {
|
||||
// TODO: maybe better names than read and get
|
||||
|
||||
func readAppFile(appFile AppFile, name AppName) (App, error) {
|
||||
env, err := readEnv(appFile.Path)
|
||||
env, err := ReadEnv(appFile.Path)
|
||||
if err != nil {
|
||||
return App{}, fmt.Errorf("env file for '%s' couldn't be read: %s", name, err.Error())
|
||||
}
|
||||
@ -214,7 +214,7 @@ func readAppFile(appFile AppFile, name AppName) (App, error) {
|
||||
return app, nil
|
||||
}
|
||||
|
||||
func readEnv(filePath string) (AppEnv, error) {
|
||||
func ReadEnv(filePath string) (AppEnv, error) {
|
||||
var envFile AppEnv
|
||||
envFile, err := godotenv.Read(filePath)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user