Skip to content

Commit

Permalink
Add internal output command which generates the configmgr merged yaml…
Browse files Browse the repository at this point in the history
… but does no other operation (#3882)

Signed-off-by: 1000TurquoisePogs <[email protected]>
  • Loading branch information
1000TurquoisePogs authored Jul 1, 2024
1 parent 87d6472 commit 594141a
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ manifest.json
artifactory-download-spec.json

# zowe jobs output
output/
./output/

# release temporary folder
.release/
Expand Down
1 change: 1 addition & 0 deletions bin/commands/internal/config/output/.examples
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
zwe internal config output -c /path/to/zowe.yaml
1 change: 1 addition & 0 deletions bin/commands/internal/config/output/.help
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Outputs the merged YAML used at Zowe runtime into zowe.workspaceDirectory/.env/.zowe-merged.yaml
13 changes: 13 additions & 0 deletions bin/commands/internal/config/output/cli.ts
Original file line number Diff line number Diff line change
@@ -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();
14 changes: 14 additions & 0 deletions bin/commands/internal/config/output/index.sh
Original file line number Diff line number Diff line change
@@ -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"
18 changes: 18 additions & 0 deletions bin/commands/internal/config/output/index.ts
Original file line number Diff line number Diff line change
@@ -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();
}

0 comments on commit 594141a

Please sign in to comment.