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

@@ -49,7 +49,7 @@ func main() {
args := flag.NewFlagSet("config:export", flag.ExitOnError)
global := args.Bool("global", false, "--global: use the global environment")
merged := args.Bool("merged", false, "--merged: merge app environment and global environment")
format := args.String("format", "exports", "--format: [ exports | envfile | docker-args | shell | pretty | json | json-list ] which format to export as)")
format := args.String("format", "exports", "--format: [ exports | envfile | docker-args | docker-args-keys | shell | pretty | json | json-list ] which format to export as)")
args.Parse(os.Args[2:])
if !*global {
appName = args.Arg(0)