mstate-cli 0.2.8 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +1 -1
- package/dist/index.js +50 -50
- package/package.json +1 -1
- package/src/common/enum.ts +0 -1
- package/src/handlers/company.handler.ts +0 -7
- package/src/handlers/help.handler.ts +1 -5
- package/src/index.ts +0 -3
package/package.json
CHANGED
package/src/common/enum.ts
CHANGED
@@ -84,7 +84,6 @@ class CompanyHandler {
|
|
84
84
|
const name = getValueFromArgs(args, Key.NAME);
|
85
85
|
const email = getValueFromArgs(args, Key.EMAIL);
|
86
86
|
const phone = getValueFromArgs(args, Key.PHONE);
|
87
|
-
const companyID = getValueFromArgs(args, Key.COMPANY_ID);
|
88
87
|
|
89
88
|
if (!secretKey) {
|
90
89
|
customLog.changeAndThrow(`Parameter secret is required`);
|
@@ -106,11 +105,6 @@ class CompanyHandler {
|
|
106
105
|
return;
|
107
106
|
}
|
108
107
|
|
109
|
-
if (!companyID) {
|
110
|
-
customLog.changeAndThrow(`Parameter company is required`);
|
111
|
-
return;
|
112
|
-
}
|
113
|
-
|
114
108
|
const url = `${MSTATE_URL}/um/user`;
|
115
109
|
const responseJSON = await fetch(url, {
|
116
110
|
method: 'POST',
|
@@ -119,7 +113,6 @@ class CompanyHandler {
|
|
119
113
|
'Content-Type': 'application/json',
|
120
114
|
},
|
121
115
|
body: JSON.stringify({
|
122
|
-
companyNickName: companyID,
|
123
116
|
name,
|
124
117
|
username: name,
|
125
118
|
email,
|
@@ -6,15 +6,11 @@ class HelpHandler {
|
|
6
6
|
console.log('\n\nUsage: mstate [cmd] [parameter]="[value]"\n');
|
7
7
|
|
8
8
|
console.log('Commands:');
|
9
|
-
customLog.info(CmdAction.ADD, '
|
9
|
+
customLog.info(CmdAction.ADD, 'Create a new workflow');
|
10
10
|
customLog.info(
|
11
11
|
CmdAction.CLONE,
|
12
12
|
'Clone workflow with actions and environments',
|
13
13
|
);
|
14
|
-
customLog.info(
|
15
|
-
CmdAction.COPY,
|
16
|
-
'crete a new workflow by copying the current',
|
17
|
-
);
|
18
14
|
customLog.info(CmdAction.PUSH, 'Update the changes one in cloned workflow');
|
19
15
|
customLog.info(
|
20
16
|
CmdAction.LINK,
|
package/src/index.ts
CHANGED
@@ -55,9 +55,6 @@ const [action] = argv.slice(2);
|
|
55
55
|
await environmentHandler.cloneEnvironments();
|
56
56
|
break;
|
57
57
|
case CmdAction.ADD:
|
58
|
-
await workflowHandler.addNewWorkflow();
|
59
|
-
break;
|
60
|
-
case CmdAction.COPY:
|
61
58
|
await workflowHandler.copyWorkflow();
|
62
59
|
case CmdAction.PUSH:
|
63
60
|
await workflowHandler.updateWorkflowToDB();
|