mstate-cli 0.4.0 → 0.4.1
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 -12
- package/dist/index.js +18 -18
- package/package.json +1 -1
- package/src/handlers/help.handler.ts +12 -11
package/package.json
CHANGED
@@ -6,6 +6,7 @@ class HelpHandler {
|
|
6
6
|
console.log('\n\nUsage: mstate <command> [arguments] \n');
|
7
7
|
|
8
8
|
console.log('Commands:');
|
9
|
+
customLog.info(CmdAction.LOGIN, 'Login in your terminal using browser');
|
9
10
|
customLog.info(CmdAction.ADD, 'Create a new workflow');
|
10
11
|
customLog.info(
|
11
12
|
CmdAction.CLONE,
|
@@ -31,18 +32,18 @@ class HelpHandler {
|
|
31
32
|
console.log('Used Arguments: ');
|
32
33
|
|
33
34
|
switch (action) {
|
34
|
-
case CmdAction.
|
35
|
-
customLog.info(
|
36
|
-
Variables.WORKFLOW,
|
37
|
-
'Specifying workflow name with path',
|
38
|
-
);
|
35
|
+
case CmdAction.LOGIN:
|
39
36
|
break;
|
37
|
+
|
38
|
+
case CmdAction.ADD:
|
39
|
+
case CmdAction.PUSH:
|
40
40
|
case CmdAction.CLONE:
|
41
41
|
customLog.info(
|
42
42
|
Variables.WORKFLOW,
|
43
43
|
'Specifying workflow name with path',
|
44
44
|
);
|
45
45
|
break;
|
46
|
+
|
46
47
|
case CmdAction.LINK:
|
47
48
|
case CmdAction.UNLINK:
|
48
49
|
customLog.info(
|
@@ -52,12 +53,7 @@ class HelpHandler {
|
|
52
53
|
customLog.info(Variables.COMPANY_ID, 'Specifying company nickname');
|
53
54
|
customLog.info(Variables.USER_ID, 'Specifying user phone number');
|
54
55
|
break;
|
55
|
-
|
56
|
-
customLog.info(
|
57
|
-
Variables.WORKFLOW,
|
58
|
-
'Specifying workflow name with path',
|
59
|
-
);
|
60
|
-
break;
|
56
|
+
|
61
57
|
case CmdAction.ADD_USER:
|
62
58
|
customLog.info(
|
63
59
|
Variables.USER_ID,
|
@@ -74,6 +70,11 @@ class HelpHandler {
|
|
74
70
|
`\t\t use 'mstate ${CmdAction.HELP_FLAG}, ${CmdAction.HELP}' for getting allowed action`,
|
75
71
|
);
|
76
72
|
}
|
73
|
+
|
74
|
+
customLog.info(
|
75
|
+
Variables.SECRET,
|
76
|
+
'Specifying token, If you want to use other token for this command instead of saved one',
|
77
|
+
);
|
77
78
|
}
|
78
79
|
}
|
79
80
|
|