@choiceopen/automation-plugin-cli 0.2.3 → 0.2.4
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
|
@@ -20,7 +20,7 @@ $ npm install -g @choiceopen/automation-plugin-cli
|
|
|
20
20
|
$ atomemo COMMAND
|
|
21
21
|
running command...
|
|
22
22
|
$ atomemo (--version)
|
|
23
|
-
@choiceopen/automation-plugin-cli/0.2.
|
|
23
|
+
@choiceopen/automation-plugin-cli/0.2.4 darwin-arm64 node-v24.13.0
|
|
24
24
|
$ atomemo --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ atomemo COMMAND
|
|
@@ -63,7 +63,7 @@ EXAMPLES
|
|
|
63
63
|
$ atomemo auth login
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
_See code: [src/commands/auth/login.ts](https://github.com/choice-open/automation-plugin-cli/blob/v0.2.
|
|
66
|
+
_See code: [src/commands/auth/login.ts](https://github.com/choice-open/automation-plugin-cli/blob/v0.2.4/src/commands/auth/login.ts)_
|
|
67
67
|
|
|
68
68
|
## `atomemo auth status`
|
|
69
69
|
|
|
@@ -85,7 +85,7 @@ EXAMPLES
|
|
|
85
85
|
$ atomemo auth status
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
-
_See code: [src/commands/auth/status.ts](https://github.com/choice-open/automation-plugin-cli/blob/v0.2.
|
|
88
|
+
_See code: [src/commands/auth/status.ts](https://github.com/choice-open/automation-plugin-cli/blob/v0.2.4/src/commands/auth/status.ts)_
|
|
89
89
|
|
|
90
90
|
## `atomemo autocomplete [SHELL]`
|
|
91
91
|
|
|
@@ -160,7 +160,7 @@ EXAMPLES
|
|
|
160
160
|
$ atomemo plugin checksum
|
|
161
161
|
```
|
|
162
162
|
|
|
163
|
-
_See code: [src/commands/plugin/checksum.ts](https://github.com/choice-open/automation-plugin-cli/blob/v0.2.
|
|
163
|
+
_See code: [src/commands/plugin/checksum.ts](https://github.com/choice-open/automation-plugin-cli/blob/v0.2.4/src/commands/plugin/checksum.ts)_
|
|
164
164
|
|
|
165
165
|
## `atomemo plugin init`
|
|
166
166
|
|
|
@@ -197,7 +197,7 @@ EXAMPLES
|
|
|
197
197
|
$ atomemo plugin init
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
-
_See code: [src/commands/plugin/init.ts](https://github.com/choice-open/automation-plugin-cli/blob/v0.2.
|
|
200
|
+
_See code: [src/commands/plugin/init.ts](https://github.com/choice-open/automation-plugin-cli/blob/v0.2.4/src/commands/plugin/init.ts)_
|
|
201
201
|
|
|
202
202
|
## `atomemo plugin pack [FILE]`
|
|
203
203
|
|
|
@@ -221,7 +221,7 @@ EXAMPLES
|
|
|
221
221
|
$ atomemo plugin pack
|
|
222
222
|
```
|
|
223
223
|
|
|
224
|
-
_See code: [src/commands/plugin/pack.ts](https://github.com/choice-open/automation-plugin-cli/blob/v0.2.
|
|
224
|
+
_See code: [src/commands/plugin/pack.ts](https://github.com/choice-open/automation-plugin-cli/blob/v0.2.4/src/commands/plugin/pack.ts)_
|
|
225
225
|
|
|
226
226
|
## `atomemo plugin permission [FILE]`
|
|
227
227
|
|
|
@@ -245,7 +245,7 @@ EXAMPLES
|
|
|
245
245
|
$ atomemo plugin permission
|
|
246
246
|
```
|
|
247
247
|
|
|
248
|
-
_See code: [src/commands/plugin/permission.ts](https://github.com/choice-open/automation-plugin-cli/blob/v0.2.
|
|
248
|
+
_See code: [src/commands/plugin/permission.ts](https://github.com/choice-open/automation-plugin-cli/blob/v0.2.4/src/commands/plugin/permission.ts)_
|
|
249
249
|
|
|
250
250
|
## `atomemo plugin refresh-key`
|
|
251
251
|
|
|
@@ -262,7 +262,7 @@ EXAMPLES
|
|
|
262
262
|
$ atomemo plugin refresh-key
|
|
263
263
|
```
|
|
264
264
|
|
|
265
|
-
_See code: [src/commands/plugin/refresh-key.ts](https://github.com/choice-open/automation-plugin-cli/blob/v0.2.
|
|
265
|
+
_See code: [src/commands/plugin/refresh-key.ts](https://github.com/choice-open/automation-plugin-cli/blob/v0.2.4/src/commands/plugin/refresh-key.ts)_
|
|
266
266
|
|
|
267
267
|
## `atomemo plugin run [FILE]`
|
|
268
268
|
|
|
@@ -286,7 +286,7 @@ EXAMPLES
|
|
|
286
286
|
$ atomemo plugin run
|
|
287
287
|
```
|
|
288
288
|
|
|
289
|
-
_See code: [src/commands/plugin/run.ts](https://github.com/choice-open/automation-plugin-cli/blob/v0.2.
|
|
289
|
+
_See code: [src/commands/plugin/run.ts](https://github.com/choice-open/automation-plugin-cli/blob/v0.2.4/src/commands/plugin/run.ts)_
|
|
290
290
|
|
|
291
291
|
## `atomemo version`
|
|
292
292
|
|
|
@@ -98,6 +98,20 @@ export default class PluginInit extends Command {
|
|
|
98
98
|
target: path.join(process.cwd(), flags.name),
|
|
99
99
|
});
|
|
100
100
|
await generator.generate();
|
|
101
|
+
this.log(colorize("blueBright", dedent `
|
|
102
|
+
🎉 Congratulation, you have already create a Atomemo Plugin!
|
|
103
|
+
|
|
104
|
+
Run the following commands to start the plugin:
|
|
105
|
+
${colorize("bold", colorize("yellowBright", `cd ${flags.name}`))}
|
|
106
|
+
${colorize("bold", colorize("yellowBright", `bun install`))}
|
|
107
|
+
${colorize("bold", colorize("yellowBright", `bun run dev`))}
|
|
108
|
+
|
|
109
|
+
In order to test your plugin in debugging mode, run the following command:
|
|
110
|
+
${colorize("bold", colorize("yellowBright", `atomemo plugin refresh-key`))}
|
|
111
|
+
|
|
112
|
+
Then, run the following command to connect the plugin hub service.
|
|
113
|
+
${colorize("bold", colorize("yellowBright", `bun run ./dist`))}
|
|
114
|
+
`));
|
|
101
115
|
}
|
|
102
116
|
nameIsValid(name) {
|
|
103
117
|
return isString(name) && /^[a-z][a-z0-9_-]{2,62}[a-z0-9]$/.test(name);
|
package/dist/utils/generator.js
CHANGED
|
@@ -37,7 +37,6 @@ export class TypeScriptPluginGenerator {
|
|
|
37
37
|
}
|
|
38
38
|
else {
|
|
39
39
|
if (extname(sourcePath).toLowerCase() === ".eta") {
|
|
40
|
-
console.info(sourcePath, entry, this.renderer);
|
|
41
40
|
const fileName = basename(sourcePath, extname(sourcePath));
|
|
42
41
|
const templatePath = sourcePath.replace(this.renderer.config.views ?? "", "");
|
|
43
42
|
const content = this.renderer.render(templatePath, this.context.props);
|
package/oclif.manifest.json
CHANGED