feat: add ability to export env vars as a --env=key ... string

This commit is contained in:
Jose Diaz-Gonzalez committed 2021-02-11 03:50:51 -05:00
1 parent 33d5dd44d9
commit 5921692f83
4 files changed
+25 -9

No files matched your search

+8 -7
View File
@@ -43,13 +43,14 @@ func CommandExport(appName string, global bool, merged bool, format string) erro
suffix := "\n"
exportTypes := map[string]ExportFormat{
"exports": ExportFormatExports,
"envfile": ExportFormatEnvfile,
"docker-args": ExportFormatDockerArgs,
"shell": ExportFormatShell,
"pretty": ExportFormatPretty,
"json": ExportFormatJSON,
"json-list": ExportFormatJSONList,
"exports": ExportFormatExports,
"envfile": ExportFormatEnvfile,
"docker-args": ExportFormatDockerArgs,
"docker-args-keys": ExportFormatDockerArgsKeys,
"shell": ExportFormatShell,
"pretty": ExportFormatPretty,
"json": ExportFormatJSON,
"json-list": ExportFormatJSONList,
}
exportType, ok := exportTypes[format]