Skip to content

Commit cd27f24

Browse files
rootroot
authored andcommitted
small changes
1 parent 10a12cc commit cd27f24

File tree

5 files changed

+45
-11
lines changed

5 files changed

+45
-11
lines changed

EndtoEndTests.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
USER=$1
44
PASS=$2
5+
DEV_TENANT=$3
6+
PROD_TENANT=$4
57

68
LOG_FILE=test-output.log
79
rm -rf $LOG_FILE
@@ -21,8 +23,8 @@ executed_counter=0
2123

2224

2325
# Check if both username and password are provided
24-
if [ "$#" -ne 2 ]; then
25-
echo "Usage: $0 <username> <password>"
26+
if [ "$#" -ne 4 ]; then
27+
echo "Usage: $0 <username> <password> <dev_tenant_prefix> <prod_tenant_prefix>"
2628
exit 1
2729
fi
2830

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This project is licensed under the Apache 2.0 License - see the LICENSE file for
1111
These tools are provided as-is and without warranty or support. They do not constitute part of the Software AG product suite. Users are free to use, fork and modify them, subject to the license agreement. While Software AG welcomes contributions, we cannot guarantee to include every contribution in the master project.
1212

1313
Contact us via the TECHcommunity (https://techcommunity.softwareag.com/) if you have any questions.
14-
14+
1515
# Installation
1616
```
1717
git clone https://github.com/SoftwareAG/webmethods-io-integration-apicli.git

experimental.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ var incEdgeFlows;
5050

5151
const maxRunningWorkflows = 20;
5252

53+
function help() {
54+
return `
55+
\x1b[4mExperimental - Projects\x1b[0m
56+
57+
\x1b[32mGet recipe list or individual recipe\x1b[0m
58+
$ node wmiocli.js
59+
-d tenant.int-aws-us.webmethods.io
60+
-u user
61+
-p password
62+
project [project name]
63+
64+
`;
65+
}
5366

5467

5568
function generateUUID(){
@@ -1151,7 +1164,7 @@ function loginResponse(url,err,body,res){
11511164

11521165

11531166

1154-
module.exports = {init,
1167+
module.exports = {init, help,
11551168
user,stages,
11561169
searchProject,
11571170
projectDeployments,

thirdparty.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
This software uses the following open source modules:
2+
3+
Name: Commander
4+
Version: 8.3.0
5+
Copyright: Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
6+
License: MIT License
7+
8+
Name: Request
9+
Version: 2.88.2
10+
Copyright: Mikeal Rogers <mikeal.rogers@gmail.com>
11+
License: Apache-2.0
12+
13+
Name: readline-sync
14+
Version: 1.4.10
15+
Copyright: Copyright (c) 2019 anseki
16+
License: MIT
17+

wmiocli.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ var hideExperimental = true;
2222
returnStart = 0;
2323
returnCount = 1000;
2424
const { setLogLevel } = require('./debug.js');
25+
const { isTypedArray } = require('util/types');
2526

2627
dbg = require('./debug.js');
2728
prettyprint = false;
@@ -77,21 +78,21 @@ function checkOptions() {
7778
returnCount = program.opts().count;
7879
}
7980

80-
8181
ignoreTLS = program.opts().ignoreTLSErrors;
8282

83-
8483
if (program.opts().prettyprint == true) {
8584
prettyprint = true;
8685
}
8786

88-
89-
9087
var levelInput = program.opts().loglevel
9188
if (program.opts().verbose == true) {
9289
levelInput = "DEBUG";
9390
}
9491

92+
if (program.opts().experimentalCommands == true){
93+
hideExperimental = false;
94+
}
95+
9596
if (levelInput == undefined && !program.opts().verbose) {
9697
levelInput = "OFF";
9798
}
@@ -174,7 +175,7 @@ program
174175
.option('--proxy <proxyURL>', 'URL for proxy server if required')
175176
.option('--caCert <path-to-cert>', 'Path to a CACert PEM file if required')
176177
.option('--ignoreTLSErrors', 'Ignore TLS errors')
177-
.option('--experimental', 'Provide help information on experimental commands')
178+
.option('--experimentalCommands', 'Provide help information on experimental commands')
178179

179180

180181
//Additional help
@@ -188,6 +189,9 @@ program
188189
189190
`)
190191

192+
193+
194+
191195
.addHelpText('after', `
192196
193197
Examples:
@@ -207,8 +211,6 @@ $ node wmiocli.js --help
207211
+ monitor.help()
208212
+ idm.help()
209213
)
210-
211-
212214
.showSuggestionAfterError()
213215
;
214216

0 commit comments

Comments
 (0)