diff --git a/.gitignore b/.gitignore index e740da7bb7..9ca12300d3 100644 --- a/.gitignore +++ b/.gitignore @@ -46,7 +46,7 @@ manifest.json artifactory-download-spec.json # zowe jobs output -output/ +./output/ # release temporary folder .release/ diff --git a/bin/commands/internal/config/output/.examples b/bin/commands/internal/config/output/.examples new file mode 100644 index 0000000000..3234dd5106 --- /dev/null +++ b/bin/commands/internal/config/output/.examples @@ -0,0 +1 @@ +zwe internal config output -c /path/to/zowe.yaml diff --git a/bin/commands/internal/config/output/.help b/bin/commands/internal/config/output/.help new file mode 100644 index 0000000000..9ab013c019 --- /dev/null +++ b/bin/commands/internal/config/output/.help @@ -0,0 +1 @@ +Outputs the merged YAML used at Zowe runtime into zowe.workspaceDirectory/.env/.zowe-merged.yaml diff --git a/bin/commands/internal/config/output/cli.ts b/bin/commands/internal/config/output/cli.ts new file mode 100644 index 0000000000..3e9ae4c7de --- /dev/null +++ b/bin/commands/internal/config/output/cli.ts @@ -0,0 +1,13 @@ +/* + This program and the accompanying materials are made available + under the terms of the Eclipse Public License v2.0 which + accompanies this distribution, and is available at + https://www.eclipse.org/legal/epl-v20.html + + SPDX-License-Identifier: EPL-2.0 + + Copyright Contributors to the Zowe Project. +*/ +import * as std from 'cm_std'; +import * as index from './index'; +index.execute(); diff --git a/bin/commands/internal/config/output/index.sh b/bin/commands/internal/config/output/index.sh new file mode 100644 index 0000000000..d2765d6f5f --- /dev/null +++ b/bin/commands/internal/config/output/index.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +####################################################################### +# This program and the accompanying materials are made available +# under the terms of the Eclipse Public License v2.0 which +# accompanies this distribution, and is available at +# https://www.eclipse.org/legal/epl-v20.html +# +# SPDX-License-Identifier: EPL-2.0 +# +# Copyright Contributors to the Zowe Project. +####################################################################### + +_CEE_RUNOPTS="XPLINK(ON),HEAPPOOLS(OFF),HEAPPOOLS64(OFF)" ${ZWE_zowe_runtimeDirectory}/bin/utils/configmgr -script "${ZWE_zowe_runtimeDirectory}/bin/commands/internal/config/output/cli.js" diff --git a/bin/commands/internal/config/output/index.ts b/bin/commands/internal/config/output/index.ts new file mode 100644 index 0000000000..5f6d98d054 --- /dev/null +++ b/bin/commands/internal/config/output/index.ts @@ -0,0 +1,18 @@ +/* + This program and the accompanying materials are made available + under the terms of the Eclipse Public License v2.0 which + accompanies this distribution, and is available at + https://www.eclipse.org/legal/epl-v20.html + + SPDX-License-Identifier: EPL-2.0 + + Copyright Contributors to the Zowe Project. +*/ + +import * as common from '../../../../libs/common'; +import * as config from '../../../../libs/config'; + +export function execute() { + common.requireZoweYaml(); + const ZOWE_CONFIG=config.getZoweConfig(); +}