@trayio/cdk-cli 0.0.2 → 0.0.5
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 +53 -25
- package/bin/dev +0 -0
- package/oclif.manifest.json +46 -5
- package/package.json +55 -68
package/README.md
CHANGED
|
@@ -21,13 +21,13 @@ A collection of CLI commands for connector development.
|
|
|
21
21
|
<!-- usage -->
|
|
22
22
|
```sh-session
|
|
23
23
|
$ npm install -g @trayio/cdk-cli
|
|
24
|
-
$ cdk COMMAND
|
|
24
|
+
$ tray-cdk COMMAND
|
|
25
25
|
running command...
|
|
26
|
-
$ cdk (--version|-v)
|
|
27
|
-
@trayio/cdk-cli/0.0.
|
|
28
|
-
$ cdk --help [COMMAND]
|
|
26
|
+
$ tray-cdk (--version|-v)
|
|
27
|
+
@trayio/cdk-cli/0.0.5 darwin-x64 node-v18.16.0
|
|
28
|
+
$ tray-cdk --help [COMMAND]
|
|
29
29
|
USAGE
|
|
30
|
-
$ cdk COMMAND
|
|
30
|
+
$ tray-cdk COMMAND
|
|
31
31
|
...
|
|
32
32
|
```
|
|
33
33
|
<!-- usagestop -->
|
|
@@ -35,18 +35,27 @@ USAGE
|
|
|
35
35
|
# Commands
|
|
36
36
|
|
|
37
37
|
<!-- commands -->
|
|
38
|
-
* [`cdk
|
|
39
|
-
* [`cdk
|
|
40
|
-
* [`cdk
|
|
41
|
-
* [`cdk
|
|
38
|
+
* [`tray-cdk`](#tray-cdk)
|
|
39
|
+
* [`tray-cdk autocomplete [SHELL]`](#tray-cdk-autocomplete-shell)
|
|
40
|
+
* [`tray-cdk connector init [CONNECTORNAME]`](#tray-cdk-connector-init-connectorname)
|
|
41
|
+
* [`tray-cdk connector operation add [OPERATIONNAME] [OPERATIONTYPE]`](#tray-cdk-connector-operation-add-operationname-operationtype)
|
|
42
|
+
* [`tray-cdk help [COMMANDS]`](#tray-cdk-help-commands)
|
|
43
|
+
* [`tray-cdk version`](#tray-cdk-version)
|
|
42
44
|
|
|
43
|
-
## `cdk
|
|
45
|
+
## `tray-cdk`
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
USAGE
|
|
49
|
+
$ tray-cdk
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## `tray-cdk autocomplete [SHELL]`
|
|
44
53
|
|
|
45
54
|
display autocomplete installation instructions
|
|
46
55
|
|
|
47
56
|
```
|
|
48
57
|
USAGE
|
|
49
|
-
$ cdk autocomplete [SHELL] [-r]
|
|
58
|
+
$ tray-cdk autocomplete [SHELL] [-r]
|
|
50
59
|
|
|
51
60
|
ARGUMENTS
|
|
52
61
|
SHELL shell type
|
|
@@ -58,36 +67,55 @@ DESCRIPTION
|
|
|
58
67
|
display autocomplete installation instructions
|
|
59
68
|
|
|
60
69
|
EXAMPLES
|
|
61
|
-
$ cdk autocomplete
|
|
70
|
+
$ tray-cdk autocomplete
|
|
62
71
|
|
|
63
|
-
$ cdk autocomplete bash
|
|
72
|
+
$ tray-cdk autocomplete bash
|
|
64
73
|
|
|
65
|
-
$ cdk autocomplete zsh
|
|
74
|
+
$ tray-cdk autocomplete zsh
|
|
66
75
|
|
|
67
|
-
$ cdk autocomplete --refresh-cache
|
|
76
|
+
$ tray-cdk autocomplete --refresh-cache
|
|
68
77
|
```
|
|
69
78
|
|
|
70
79
|
_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v2.1.9/src/commands/autocomplete/index.ts)_
|
|
71
80
|
|
|
72
|
-
## `cdk
|
|
81
|
+
## `tray-cdk connector init [CONNECTORNAME]`
|
|
73
82
|
|
|
74
|
-
|
|
83
|
+
Initialize a connector project
|
|
75
84
|
|
|
76
85
|
```
|
|
77
86
|
USAGE
|
|
78
|
-
$ cdk
|
|
87
|
+
$ tray-cdk connector init [CONNECTORNAME]
|
|
88
|
+
|
|
89
|
+
ARGUMENTS
|
|
90
|
+
CONNECTORNAME Connector directory name to generate template files
|
|
91
|
+
|
|
92
|
+
DESCRIPTION
|
|
93
|
+
Initialize a connector project
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## `tray-cdk connector operation add [OPERATIONNAME] [OPERATIONTYPE]`
|
|
97
|
+
|
|
98
|
+
Add an operation to connector project
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
USAGE
|
|
102
|
+
$ tray-cdk connector operation add [OPERATIONNAME] [OPERATIONTYPE]
|
|
103
|
+
|
|
104
|
+
ARGUMENTS
|
|
105
|
+
OPERATIONNAME Operation name
|
|
106
|
+
OPERATIONTYPE (http|composite) Operation type
|
|
79
107
|
|
|
80
108
|
DESCRIPTION
|
|
81
|
-
|
|
109
|
+
Add an operation to connector project
|
|
82
110
|
```
|
|
83
111
|
|
|
84
|
-
## `cdk help [COMMANDS]`
|
|
112
|
+
## `tray-cdk help [COMMANDS]`
|
|
85
113
|
|
|
86
|
-
Display help for cdk.
|
|
114
|
+
Display help for tray-cdk.
|
|
87
115
|
|
|
88
116
|
```
|
|
89
117
|
USAGE
|
|
90
|
-
$ cdk help [COMMANDS] [-n]
|
|
118
|
+
$ tray-cdk help [COMMANDS] [-n]
|
|
91
119
|
|
|
92
120
|
ARGUMENTS
|
|
93
121
|
COMMANDS Command to show help for.
|
|
@@ -96,16 +124,16 @@ FLAGS
|
|
|
96
124
|
-n, --nested-commands Include all nested commands in the output.
|
|
97
125
|
|
|
98
126
|
DESCRIPTION
|
|
99
|
-
Display help for cdk.
|
|
127
|
+
Display help for tray-cdk.
|
|
100
128
|
```
|
|
101
129
|
|
|
102
130
|
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.2.9/src/commands/help.ts)_
|
|
103
131
|
|
|
104
|
-
## `cdk version`
|
|
132
|
+
## `tray-cdk version`
|
|
105
133
|
|
|
106
134
|
```
|
|
107
135
|
USAGE
|
|
108
|
-
$ cdk version [--json] [--verbose]
|
|
136
|
+
$ tray-cdk version [--json] [--verbose]
|
|
109
137
|
|
|
110
138
|
FLAGS
|
|
111
139
|
--verbose Show additional information about the CLI.
|
package/bin/dev
CHANGED
|
File without changes
|
package/oclif.manifest.json
CHANGED
|
@@ -1,16 +1,57 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.
|
|
2
|
+
"version": "0.0.5",
|
|
3
3
|
"commands": {
|
|
4
|
-
"
|
|
5
|
-
"id": "
|
|
6
|
-
"description": "Hello world",
|
|
7
|
-
"strict": true,
|
|
4
|
+
".": {
|
|
5
|
+
"id": ".",
|
|
8
6
|
"pluginName": "@trayio/cdk-cli",
|
|
9
7
|
"pluginAlias": "@trayio/cdk-cli",
|
|
10
8
|
"pluginType": "core",
|
|
11
9
|
"aliases": [],
|
|
12
10
|
"flags": {},
|
|
13
11
|
"args": {}
|
|
12
|
+
},
|
|
13
|
+
"connector:init": {
|
|
14
|
+
"id": "connector:init",
|
|
15
|
+
"description": "Initialize a connector project",
|
|
16
|
+
"strict": true,
|
|
17
|
+
"pluginName": "@trayio/cdk-cli",
|
|
18
|
+
"pluginAlias": "@trayio/cdk-cli",
|
|
19
|
+
"pluginType": "core",
|
|
20
|
+
"aliases": [],
|
|
21
|
+
"flags": {},
|
|
22
|
+
"args": {
|
|
23
|
+
"connectorName": {
|
|
24
|
+
"name": "connectorName",
|
|
25
|
+
"description": "Connector directory name to generate template files",
|
|
26
|
+
"required": false
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"connector:operation:add": {
|
|
31
|
+
"id": "connector:operation:add",
|
|
32
|
+
"description": "Add an operation to connector project",
|
|
33
|
+
"strict": true,
|
|
34
|
+
"pluginName": "@trayio/cdk-cli",
|
|
35
|
+
"pluginAlias": "@trayio/cdk-cli",
|
|
36
|
+
"pluginType": "core",
|
|
37
|
+
"aliases": [],
|
|
38
|
+
"flags": {},
|
|
39
|
+
"args": {
|
|
40
|
+
"operationName": {
|
|
41
|
+
"name": "operationName",
|
|
42
|
+
"description": "Operation name",
|
|
43
|
+
"required": false
|
|
44
|
+
},
|
|
45
|
+
"operationType": {
|
|
46
|
+
"name": "operationType",
|
|
47
|
+
"description": "Operation type",
|
|
48
|
+
"required": false,
|
|
49
|
+
"options": [
|
|
50
|
+
"http",
|
|
51
|
+
"composite"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
14
55
|
}
|
|
15
56
|
}
|
|
16
57
|
}
|
package/package.json
CHANGED
|
@@ -1,69 +1,56 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"additionalHelpFlags": [
|
|
58
|
-
"-h"
|
|
59
|
-
],
|
|
60
|
-
"additionalVersionFlags": [
|
|
61
|
-
"-v"
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
"scripts": {
|
|
65
|
-
"oclif:clean": "rm -f oclif.manifest.json",
|
|
66
|
-
"postcompile": "oclif manifest && oclif readme"
|
|
67
|
-
},
|
|
68
|
-
"gitHead": "36f881ee050298119269b4f2ad889865def3e8e1"
|
|
69
|
-
}
|
|
2
|
+
"name": "@trayio/cdk-cli",
|
|
3
|
+
"version": "0.0.5",
|
|
4
|
+
"description": "A collection of CLI commands for connector development.",
|
|
5
|
+
"exports": {
|
|
6
|
+
"./*": "./dist/*.js"
|
|
7
|
+
},
|
|
8
|
+
"license": "Proprietary",
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@oclif/core": "*",
|
|
11
|
+
"@oclif/plugin-autocomplete": "*",
|
|
12
|
+
"@oclif/plugin-help": "*",
|
|
13
|
+
"@oclif/plugin-version": "*",
|
|
14
|
+
"@oclif/test": "*",
|
|
15
|
+
"@trayio/tray-generator": "*",
|
|
16
|
+
"@types/inquirer": "8.2.6",
|
|
17
|
+
"chalk": "4.1.2",
|
|
18
|
+
"inquirer": "8.2.5"
|
|
19
|
+
},
|
|
20
|
+
"typesVersions": {
|
|
21
|
+
"*": {
|
|
22
|
+
"*": [
|
|
23
|
+
"*",
|
|
24
|
+
"dist/*"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"/bin",
|
|
30
|
+
"/dist",
|
|
31
|
+
"/oclif.manifest.json"
|
|
32
|
+
],
|
|
33
|
+
"bin": {
|
|
34
|
+
"tray-cdk": "./bin/run"
|
|
35
|
+
},
|
|
36
|
+
"oclif": {
|
|
37
|
+
"commands": "./dist",
|
|
38
|
+
"bin": "tray-cdk",
|
|
39
|
+
"topicSeparator": " ",
|
|
40
|
+
"plugins": [
|
|
41
|
+
"@oclif/plugin-help",
|
|
42
|
+
"@oclif/plugin-autocomplete",
|
|
43
|
+
"@oclif/plugin-version"
|
|
44
|
+
],
|
|
45
|
+
"additionalHelpFlags": [
|
|
46
|
+
"-h"
|
|
47
|
+
],
|
|
48
|
+
"additionalVersionFlags": [
|
|
49
|
+
"-v"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"oclif:clean": "rm -f oclif.manifest.json",
|
|
54
|
+
"postcompile": "oclif manifest && oclif readme"
|
|
55
|
+
}
|
|
56
|
+
}
|