@memberjunction/cli 2.0.0 → 2.1.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 CHANGED
@@ -12,7 +12,7 @@ $ npm install -g @memberjunction/cli
12
12
  $ mj COMMAND
13
13
  running command...
14
14
  $ mj (--version)
15
- @memberjunction/cli/2.0.0 darwin-arm64 node-v20.15.1
15
+ @memberjunction/cli/2.1.1 linux-x64 node-v20.15.1
16
16
  $ mj --help [COMMAND]
17
17
  USAGE
18
18
  $ mj COMMAND
@@ -22,11 +22,9 @@ USAGE
22
22
  # Commands
23
23
  <!-- commands -->
24
24
  * [`mj clean`](#mj-clean)
25
- * [`mj codegen`](#mj-codegen)
26
25
  * [`mj help [COMMAND]`](#mj-help-command)
27
26
  * [`mj install`](#mj-install)
28
27
  * [`mj migrate`](#mj-migrate)
29
- * [`mj test`](#mj-test)
30
28
  * [`mj version`](#mj-version)
31
29
 
32
30
  ## `mj clean`
@@ -47,27 +45,7 @@ EXAMPLES
47
45
  $ mj clean
48
46
  ```
49
47
 
50
- _See code: [src/commands/clean/index.ts](https://github.com/MemberJunction/MJ/blob/v2.0.0/src/commands/clean/index.ts)_
51
-
52
- ## `mj codegen`
53
-
54
- Runs the MemberJunction code generation
55
-
56
- ```
57
- USAGE
58
- $ mj codegen [--skipdb]
59
-
60
- FLAGS
61
- --skipdb Enable additional logging
62
-
63
- DESCRIPTION
64
- Runs the MemberJunction code generation
65
-
66
- EXAMPLES
67
- $ mj codegen
68
- ```
69
-
70
- _See code: [src/commands/codegen/index.ts](https://github.com/MemberJunction/MJ/blob/v2.0.0/src/commands/codegen/index.ts)_
48
+ _See code: [src/commands/clean/index.ts](https://github.com/MemberJunction/MJ/blob/v2.1.1/src/commands/clean/index.ts)_
71
49
 
72
50
  ## `mj help [COMMAND]`
73
51
 
@@ -107,7 +85,7 @@ EXAMPLES
107
85
  $ mj install
108
86
  ```
109
87
 
110
- _See code: [src/commands/install/index.ts](https://github.com/MemberJunction/MJ/blob/v2.0.0/src/commands/install/index.ts)_
88
+ _See code: [src/commands/install/index.ts](https://github.com/MemberJunction/MJ/blob/v2.1.1/src/commands/install/index.ts)_
111
89
 
112
90
  ## `mj migrate`
113
91
 
@@ -127,27 +105,7 @@ EXAMPLES
127
105
  $ mj migrate
128
106
  ```
129
107
 
130
- _See code: [src/commands/migrate/index.ts](https://github.com/MemberJunction/MJ/blob/v2.0.0/src/commands/migrate/index.ts)_
131
-
132
- ## `mj test`
133
-
134
- An empty commad to test CLI debugging
135
-
136
- ```
137
- USAGE
138
- $ mj test [-v]
139
-
140
- FLAGS
141
- -v, --verbose Enable additional logging
142
-
143
- DESCRIPTION
144
- An empty commad to test CLI debugging
145
-
146
- EXAMPLES
147
- $ mj test
148
- ```
149
-
150
- _See code: [src/commands/test/index.ts](https://github.com/MemberJunction/MJ/blob/v2.0.0/src/commands/test/index.ts)_
108
+ _See code: [src/commands/migrate/index.ts](https://github.com/MemberJunction/MJ/blob/v2.1.1/src/commands/migrate/index.ts)_
151
109
 
152
110
  ## `mj version`
153
111
 
@@ -32,37 +32,6 @@
32
32
  "index.js"
33
33
  ]
34
34
  },
35
- "codegen": {
36
- "aliases": [],
37
- "args": {},
38
- "description": "Runs the MemberJunction code generation",
39
- "examples": [
40
- "<%= config.bin %> <%= command.id %>\n"
41
- ],
42
- "flags": {
43
- "skipdb": {
44
- "description": "Enable additional logging",
45
- "name": "skipdb",
46
- "allowNo": false,
47
- "type": "boolean"
48
- }
49
- },
50
- "hasDynamicHelp": false,
51
- "hiddenAliases": [],
52
- "id": "codegen",
53
- "pluginAlias": "@memberjunction/cli",
54
- "pluginName": "@memberjunction/cli",
55
- "pluginType": "core",
56
- "strict": true,
57
- "enableJsonFlag": false,
58
- "isESM": false,
59
- "relativePath": [
60
- "dist",
61
- "commands",
62
- "codegen",
63
- "index.js"
64
- ]
65
- },
66
35
  "install": {
67
36
  "aliases": [],
68
37
  "args": {},
@@ -126,39 +95,7 @@
126
95
  "migrate",
127
96
  "index.js"
128
97
  ]
129
- },
130
- "test": {
131
- "aliases": [],
132
- "args": {},
133
- "description": "An empty commad to test CLI debugging",
134
- "examples": [
135
- "<%= config.bin %> <%= command.id %>\n"
136
- ],
137
- "flags": {
138
- "verbose": {
139
- "char": "v",
140
- "description": "Enable additional logging",
141
- "name": "verbose",
142
- "allowNo": false,
143
- "type": "boolean"
144
- }
145
- },
146
- "hasDynamicHelp": false,
147
- "hiddenAliases": [],
148
- "id": "test",
149
- "pluginAlias": "@memberjunction/cli",
150
- "pluginName": "@memberjunction/cli",
151
- "pluginType": "core",
152
- "strict": true,
153
- "enableJsonFlag": false,
154
- "isESM": false,
155
- "relativePath": [
156
- "dist",
157
- "commands",
158
- "test",
159
- "index.js"
160
- ]
161
98
  }
162
99
  },
163
- "version": "2.0.0"
100
+ "version": "2.1.1"
164
101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/cli",
3
- "version": "2.0.0",
3
+ "version": "2.1.1",
4
4
  "description": "MemberJunction command line tools",
5
5
  "keywords": [
6
6
  "oclif"
@@ -49,7 +49,6 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@inquirer/prompts": "^5.0.1",
52
- "@memberjunction/codegen-lib": "2.0.0",
53
52
  "@oclif/core": "^3",
54
53
  "@oclif/plugin-help": "^6",
55
54
  "@oclif/plugin-version": "^2.0.17",
@@ -1,11 +0,0 @@
1
- import { Command } from '@oclif/core';
2
- import { ParserOutput } from '@oclif/core/lib/interfaces/parser';
3
- export default class Codegen extends Command {
4
- static description: string;
5
- static examples: string[];
6
- static flags: {
7
- skipdb: import("@oclif/core/lib/interfaces/parser").BooleanFlag<boolean>;
8
- };
9
- flags: ParserOutput<Codegen>['flags'];
10
- run(): Promise<void>;
11
- }
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const dotenv_1 = __importDefault(require("dotenv"));
7
- dotenv_1.default.config();
8
- const codegen_lib_1 = require("@memberjunction/codegen-lib");
9
- const core_1 = require("@oclif/core");
10
- class Codegen extends core_1.Command {
11
- static description = 'Runs the MemberJunction code generation';
12
- static examples = [
13
- `<%= config.bin %> <%= command.id %>
14
- `,
15
- ];
16
- static flags = {
17
- skipdb: core_1.Flags.boolean({ name: 'skipdb', description: 'Enable additional logging' }),
18
- };
19
- flags;
20
- async run() {
21
- const parsed = await this.parse(Codegen);
22
- this.flags = parsed.flags;
23
- // Initialize configuration
24
- (0, codegen_lib_1.initializeConfig)(process.cwd());
25
- // Call the function with the determined argument
26
- (0, codegen_lib_1.runMemberJunctionCodeGeneration)(this.flags.skipdb);
27
- }
28
- }
29
- exports.default = Codegen;
@@ -1,11 +0,0 @@
1
- import { Command } from '@oclif/core';
2
- import { ParserOutput } from '@oclif/core/lib/interfaces/parser';
3
- export default class Test extends Command {
4
- static description: string;
5
- static examples: string[];
6
- static flags: {
7
- verbose: import("@oclif/core/lib/interfaces/parser").BooleanFlag<boolean>;
8
- };
9
- flags: ParserOutput<Test>['flags'];
10
- run(): Promise<void>;
11
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const codegen_lib_1 = require("@memberjunction/codegen-lib");
4
- const core_1 = require("@oclif/core");
5
- class Test extends core_1.Command {
6
- static description = 'An empty commad to test CLI debugging';
7
- static examples = [
8
- `<%= config.bin %> <%= command.id %>
9
- `,
10
- ];
11
- static flags = {
12
- verbose: core_1.Flags.boolean({ char: 'v', description: 'Enable additional logging' }),
13
- };
14
- flags;
15
- async run() {
16
- const parsed = await this.parse(Test);
17
- this.flags = parsed.flags;
18
- (0, codegen_lib_1.logStatus)('It works!');
19
- this.log('Test complete!');
20
- }
21
- }
22
- exports.default = Test;