refactor: use new name for pack format
This commit is contained in:
1 parent
6f55b89149
commit
5b7464f525
3 files changed
+3
-3
No files matched your search
@@ -28,7 +28,7 @@ trigger-builder-pack-builder-build() {
|
|||||||
|
|
||||||
pushd "$SOURCECODE_WORK_DIR" &>/dev/null
|
pushd "$SOURCECODE_WORK_DIR" &>/dev/null
|
||||||
|
|
||||||
ENV_ARGS=($(config_export app "$APP" --format pack --merged))
|
ENV_ARGS=($(config_export app "$APP" --format pack-keys --merged))
|
||||||
eval "$(config_export app "$APP" --merged)"
|
eval "$(config_export app "$APP" --merged)"
|
||||||
|
|
||||||
plugn trigger pre-build-pack "$APP" "$SOURCECODE_WORK_DIR"
|
plugn trigger pre-build-pack "$APP" "$SOURCECODE_WORK_DIR"
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ func export(appName string, global bool, merged bool, format string) error {
|
|||||||
"exports": ExportFormatExports,
|
"exports": ExportFormatExports,
|
||||||
"json": ExportFormatJSON,
|
"json": ExportFormatJSON,
|
||||||
"json-list": ExportFormatJSONList,
|
"json-list": ExportFormatJSONList,
|
||||||
"pack": ExportFormatPackArgKeys,
|
"pack-keys": ExportFormatPackArgKeys,
|
||||||
"pretty": ExportFormatPretty,
|
"pretty": ExportFormatPretty,
|
||||||
"shell": ExportFormatShell,
|
"shell": ExportFormatShell,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ func main() {
|
|||||||
args := flag.NewFlagSet("config:export", flag.ExitOnError)
|
args := flag.NewFlagSet("config:export", flag.ExitOnError)
|
||||||
global := args.Bool("global", false, "--global: use the global environment")
|
global := args.Bool("global", false, "--global: use the global environment")
|
||||||
merged := args.Bool("merged", false, "--merged: merge app environment and global environment")
|
merged := args.Bool("merged", false, "--merged: merge app environment and global environment")
|
||||||
format := args.String("format", "exports", "--format: [ docker-args | docker-args-keys | exports | envfile | json | json-list | pack | pretty | shell ] which format to export as)")
|
format := args.String("format", "exports", "--format: [ docker-args | docker-args-keys | exports | envfile | json | json-list | pack-keys | pretty | shell ] which format to export as)")
|
||||||
args.Parse(os.Args[2:])
|
args.Parse(os.Args[2:])
|
||||||
if !*global {
|
if !*global {
|
||||||
appName = args.Arg(0)
|
appName = args.Arg(0)
|
||||||
|
|||||||
Reference in new issue
Block a user