@trayio/cdk-cli 0.1.0 → 0.2.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 CHANGED
@@ -24,7 +24,7 @@ $ npm install -g @trayio/cdk-cli
24
24
  $ tray-cdk COMMAND
25
25
  running command...
26
26
  $ tray-cdk (--version|-v)
27
- @trayio/cdk-cli/0.1.0 linux-x64 node-v18.17.0
27
+ @trayio/cdk-cli/0.2.0 linux-x64 node-v18.17.0
28
28
  $ tray-cdk --help [COMMAND]
29
29
  USAGE
30
30
  $ tray-cdk COMMAND
@@ -1 +1 @@
1
- {"version":3,"file":"add-operation.d.ts","sourceRoot":"","sources":["../src/add-operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAQ,MAAM,aAAa,CAAC;AAc5C,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,MACQ,CAAC;AAEnD,eAAO,MAAM,UAAU,UAAW,MAAM,KAAG,MACd,CAAC;AAe9B,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,OAAO;IAChD,MAAM,CAAC,WAAW,SAA2C;IAE7D,MAAM,CAAC,IAAI;;;MAYT;IAEI,GAAG;CAuDT"}
1
+ {"version":3,"file":"add-operation.d.ts","sourceRoot":"","sources":["../src/add-operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAQ,MAAM,aAAa,CAAC;AAe5C,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,MACQ,CAAC;AAEnD,eAAO,MAAM,UAAU,UAAW,MAAM,KAAG,MACd,CAAC;AAe9B,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,OAAO;IAChD,MAAM,CAAC,WAAW,SAA2C;IAE7D,MAAM,CAAC,IAAI;;;MAYT;IAEI,GAAG;CAyDT"}
@@ -63,6 +63,7 @@ class AddOperation extends core_1.Command {
63
63
  const operationNameKebabCase = (0, lodash_1.kebabCase)(operationName);
64
64
  const operationNamePascalCase = (0, exports.pascalCase)(operationName);
65
65
  const operationNameCamelCase = (0, lodash_1.camelCase)(operationName);
66
+ const operationNameSnakeCase = (0, lodash_1.snakeCase)(operationName);
66
67
  const currentDirectory = process.cwd();
67
68
  const connectorNamePascalCase = (0, exports.pascalCase)(getConnectorName(currentDirectory));
68
69
  const operationType = args.operationType || promptRes.operationType;
@@ -78,6 +79,7 @@ class AddOperation extends core_1.Command {
78
79
  operationNameKebabCase,
79
80
  operationNamePascalCase,
80
81
  operationNameCamelCase,
82
+ operationNameSnakeCase,
81
83
  connectorNamePascalCase,
82
84
  })();
83
85
  this.log(chalk_1.default.bold(chalk_1.default.green(`Success! Added operation: ${operationNameKebabCase}`)));
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.0",
2
+ "version": "0.2.0",
3
3
  "commands": {
4
4
  "add-operation": {
5
5
  "id": "add-operation",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trayio/cdk-cli",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "A CLI for connector development",
5
5
  "exports": {
6
6
  "./*": "./dist/*.js"