Skip to content

Commit 112daa6

Browse files
committed
updated help text to reflect new options
1 parent bebabf7 commit 112daa6

File tree

1 file changed

+41
-10
lines changed

1 file changed

+41
-10
lines changed

wmiocli.js

Lines changed: 41 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ Examples:
122122
project-publish fl65d3aa87fc1783ea5cf8c8 'My deployment' 'target.int-aws-us.webmethods.io' 'targetuser' 'targetpassword' '{"output":{"workflows":["fla73a20e13dd6736cf9c355","fl3cfd145262bbc5d44acff3"],"flows":["mapLeads"],"rest_api":[],"soap_api":[],"listener":[],"messaging":[]}}'
123123
124124
125-
\x1b[32m/Publish Project to another tenant:\x1b[0m
126-
$ node wmiocli.js
127-
-d tenant.int-aws-us.webmethods.io
128-
-u user
129-
-p password
130-
project-publish fl65d3aa87fc1783ea5cf8c8 'My deployment'
125+
\x1b[32m/Deploy published Project in the tenant with the given name and deploy version:\x1b[0m
126+
$ node wmiocli.js
127+
-d tenant.int-aws-us.webmethods.io
128+
-u user
129+
-p password
130+
project-deploy projectName 1
131131
132132
\x1b[4mWorkflow\x1b[0m
133133
@@ -197,7 +197,38 @@ Examples:
197197
-d tenant.int-aws-us.webmethods.io
198198
-u user
199199
-p password
200-
flowservice-execute fl65d3aa87fc1783ea5cf8c8 myFlowService
200+
flowservice-execute fl65d3aa87fc1783ea5cf8c8 myFlowService
201+
202+
203+
\x1b[4mRoles\x1b[0m
204+
205+
\x1b[32mGet roles list or individual role\x1b[0m
206+
$ node wmiocli.js
207+
-d tenant.int-aws-us.webmethods.io
208+
-u user
209+
-p password
210+
role [role-name]
211+
212+
\x1b[32mCreates a role\x1b[0m
213+
$ node wmiocli.js
214+
-d tenant.int-aws-us.webmethods.io
215+
-u user
216+
-p password
217+
role-create 'rolename' 'role description' 'project 1 name,r,w,e;project 2 name,r;'
218+
219+
\x1b[32mUpdates a role with a provided Id\x1b[0m
220+
$ node wmiocli.js
221+
-d tenant.int-aws-us.webmethods.io
222+
-u user
223+
-p password
224+
role-update 'roleId' 'rolename' 'role description' 'project 1 name,r,w,e;project 2 name,r;'
225+
226+
\x1b[32mDelete a role with a provided Id\x1b[0m
227+
$ node wmiocli.js
228+
-d tenant.int-aws-us.webmethods.io
229+
-u user
230+
-p password
231+
role-delete 'roleId'
201232
`)
202233

203234
.showSuggestionAfterError()
@@ -297,9 +328,9 @@ program.command('role-update <role-id> <role-name> <role-description> <roles-lis
297328
role.update(roleId, roleName,roleDescription, rolesList);
298329
});
299330

300-
program.command('role-delete <role-name>')
301-
.description('Delete a roles with the given role name')
302-
.action((roleId, roleName,roleDescription,rolesList) => {
331+
program.command('role-delete <roleId>')
332+
.description('Delete a roles with the given role id')
333+
.action((roleId) => {
303334
checkOptions();
304335
role.init(program.opts().domain,program.opts().user,program.opts().password,program.opts().timeout,program.opts().prettyprint);
305336
role.del(roleId);

0 commit comments

Comments
 (0)