Skip to content

Commit d39d1b6

Browse files
committed
rename parms 5
1 parent 66d274f commit d39d1b6

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

docs-internal/CLIReadme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ the target group of CICS regions\.
4040
* Specifies the name of the CICS BUNDLE resource (up to 8 characters) to deploy or
4141
undeploy.
4242

43-
* `--bundle-directory` | `--bd` | `--bundledir` *(string)*
43+
* `--bundle-directory` | `--bd` | `--bundledir` | `--bundle-dir` *(string)*
4444

4545
* Specifies the location of the CICS bundle (up to 255 characters) on zFS.
4646

@@ -283,7 +283,7 @@ If a bundle is deployed then a resource is defined in the BAS data repository;
283283
if a bundle is undeployed then the definition is removed. The --csd-group and
284284
--res-group options are mutually exclusive.
285285

286-
* `--target-directory` | `--td` | `--targetdir` *(string)*
286+
* `--target-directory` | `--td` | `--targetdir` | `--target-dir` *(string)*
287287

288288
* Specifies the target zFS location to which CICS bundles should be uploaded (up
289289
to 255 characters).
@@ -365,7 +365,7 @@ datasets can be found in the target environment.
365365
* Specifies the High Level Qualifier (up to 35 characters) at which the CPSM
366366
datasets can be found in the target environment.
367367

368-
* `--target-directory` | `--td` | `--targetdir` *(string)*
368+
* `--target-directory` | `--td` | `--targetdir` | `--target-dir` *(string)*
369369

370370
* Specifies the target zFS location to which CICS bundles should be uploaded (up
371371
to 255 characters).
@@ -479,7 +479,7 @@ Push a CICS bundle from the working directory to a target CICSplex\.
479479
* Specifies the name of the CICS BUNDLE resource (up to 8 characters) to deploy or
480480
undeploy.
481481

482-
* `--target-directory` | `--td` | `--targetdir` *(string)*
482+
* `--target-directory` | `--td` | `--targetdir` | `--target-dir` *(string)*
483483

484484
* Specifies the target zFS location in which the CICS bundle is to be created (up
485485
to 255 characters)

src/api/BundlePush/BundlePusher.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ export class BundlePusher {
372372
}
373373

374374
this.sshOutputText = "";
375-
const shell = await Shell.executeSshCwd(sshSession, sshCommand, directory, this.sshOutput.bind(this));
375+
const sshReturnCode = await Shell.executeSshCwd(sshSession, sshCommand, directory, this.sshOutput.bind(this));
376376
const upperCaseOutputText = this.sshOutputText.toUpperCase();
377377

378378
// Note that FSUM9195 can imply that we've tried to delete the
@@ -383,19 +383,19 @@ export class BundlePusher {
383383
const countFSUM9195 = (upperCaseOutputText.match(/FSUM9195/g) || []).length;
384384
if (countFSUM9195 !== 0 &&
385385
countFSUM === countFSUM9195 &&
386-
shell === 1) {
386+
sshReturnCode === 1) {
387387
isOnlyFSUM9195 = true;
388388
}
389389

390390
// Now check
391391
// A. If exit code is non zero
392392
// B. FSUM9195 is not the only FSUM error
393-
if (shell !== 0 && !isOnlyFSUM9195) {
393+
if (sshReturnCode !== 0 && !isOnlyFSUM9195) {
394394
// if we've not already logged the output, log it now
395395
if (this.params.arguments.verbose !== true) {
396396
this.params.response.console.log(Buffer.from(this.sshOutputText));
397397
}
398-
throw new Error("The output from the remote command implied that an error occurred, return code " + shell + ".");
398+
throw new Error("The output from the remote command implied that an error occurred, return code " + sshReturnCode + ".");
399399
}
400400
}
401401
catch (error) {

src/cli/deploy/bundle/options/Bundledir.option.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const MAX_LENGTH = 255;
1919
*/
2020
export const BundledirOption: ICommandOptionDefinition = {
2121
name: "bundle-directory",
22-
aliases: ["bd", "bundledir"],
22+
aliases: ["bd", "bundledir", "bundle-dir"],
2323
type: "string",
2424
required: true,
2525
stringLengthRange: [1, MAX_LENGTH],

src/cli/push/bundle/options/Targetdir.option.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const MAX_LENGTH = 255;
1919
*/
2020
export const TargetdirOption: ICommandOptionDefinition = {
2121
name: "target-directory",
22-
aliases: ["td", "targetdir"],
22+
aliases: ["td", "targetdir", "target-dir"],
2323
type: "string",
2424
required: true,
2525
stringLengthRange: [1, MAX_LENGTH],

src/imperative.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const config: IImperativeConfig = {
111111
description: "Specifies the target zFS location to which CICS bundles should be uploaded (up to 255 characters).",
112112
type: "string",
113113
name: "target-directory",
114-
aliases: ["td", "targetdir"],
114+
aliases: ["td", "targetdir", "target-dir"],
115115
stringLengthRange: [1, MAX_TARGETDIR_LENGTH],
116116
required: false
117117
},

0 commit comments

Comments
 (0)