eitri-cli 1.36.0 → 1.36.1-beta.2

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.
@@ -3,6 +3,10 @@
3
3
 
4
4
  /* auto-generated by NAPI-RS */
5
5
 
6
+ export interface PublishArgs {
7
+ environment: string
8
+ message?: string
9
+ }
6
10
  export interface StartArguments {
7
11
  shared?: boolean
8
12
  verbose?: boolean
@@ -34,7 +38,7 @@ export interface TestingArgs {
34
38
  verbose?: boolean
35
39
  watch?: boolean
36
40
  }
37
- export declare function publish(environment: string, message: string): Promise<void>
41
+ export declare function publish(args: PublishArgs): Promise<void>
38
42
  export declare function runTest(args: TestingArgs): Promise<void>
39
43
  export declare function eitriLibs(eitriLibsArgs: EitriLibsArguments): Promise<void>
40
44
  export declare function doctor(): Promise<void>
package/index.js CHANGED
@@ -192,7 +192,11 @@ const run = async () => {
192
192
  )
193
193
  .option("-m, --message <publish-message>", "Adiciona comentários na versão")
194
194
  .action(async (cmdObj) => {
195
- await globalEitriCLIV2.publish(cmdObj.environment, cmdObj.message || "");
195
+ if (!cmdObj.environment) {
196
+ console.error("Argumento --environment <id> é obrigatório.")
197
+ return;
198
+ }
199
+ await globalEitriCLIV2.publish(cmdObj);
196
200
  });
197
201
 
198
202
  program
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.36.0",
3
+ "version": "1.36.1-beta.2",
4
4
  "description": "Command Line Interface to make \"Eitri-App\" with code and fire.",
5
5
  "main": "index.js",
6
6
  "bin": {