eitri-cli 1.30.2 → 1.31.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.
@@ -28,6 +28,7 @@ version = "/version"
28
28
  upload_all = "/uploadAll"
29
29
  file_upload = "/fileupload"
30
30
  setup_app = "/v2/workspace/setup-app"
31
+ publish = "/publish"
31
32
 
32
33
  [foundry.libs]
33
34
  update_libs_endpoint_version = "application/vnd.workspace.api.v2+json"
@@ -28,6 +28,7 @@ version = "/version"
28
28
  upload_all = "/uploadAll"
29
29
  file_upload = "/fileupload"
30
30
  setup_app = "/v2/workspace/setup-app"
31
+ publish = "/publish"
31
32
 
32
33
 
33
34
  [foundry.libs]
@@ -28,6 +28,7 @@ version = "/version"
28
28
  upload_all = "/uploadAll"
29
29
  file_upload = "/fileupload"
30
30
  setup_app = "/v2/workspace/setup-app"
31
+ publish = "/publish"
31
32
 
32
33
 
33
34
  [foundry.libs]
@@ -12,3 +12,4 @@ version = "/version"
12
12
  upload_all = "/uploadAll"
13
13
  file_upload = "/fileupload"
14
14
  setup_app = "/v2/workspace/setup-app"
15
+ publish = "/publish"
@@ -28,6 +28,7 @@ version = "/version"
28
28
  upload_all = "/uploadAll"
29
29
  file_upload = "/fileupload"
30
30
  setup_app = "/v2/workspace/setup-app"
31
+ publish = "/publish"
31
32
 
32
33
 
33
34
  [foundry.libs]
@@ -18,6 +18,11 @@ export interface EitriLibsArguments {
18
18
  bifrost?: boolean
19
19
  luminus?: boolean
20
20
  }
21
+ export interface PushArgs {
22
+ verbose?: boolean
23
+ shared?: boolean
24
+ message?: string
25
+ }
21
26
  export declare function publish(environment: string, message: string): Promise<void>
22
27
  export declare function runTest(testPath: string): Promise<void>
23
28
  export declare function eitriLibs(eitriLibsArgs: EitriLibsArguments): Promise<void>
@@ -27,6 +32,7 @@ export declare function create(args: CreateArguments): Promise<void>
27
32
  export declare function updateChecker(): void
28
33
  export declare function gpt(): Promise<void>
29
34
  export declare function connectionCheck(): Promise<void>
35
+ export declare function pushVersion(args: PushArgs): Promise<void>
30
36
  export declare namespace app {
31
37
  export function start(args: StartArguments): Promise<void>
32
38
  export function appLogs(): Promise<void>
@@ -310,7 +310,7 @@ if (!nativeBinding) {
310
310
  throw new Error(`Failed to load native binding`)
311
311
  }
312
312
 
313
- const { publish, runTest, eitriLibs, doctor, start, create, updateChecker, gpt, connectionCheck, app, workspace } = nativeBinding
313
+ const { publish, runTest, eitriLibs, doctor, start, create, updateChecker, gpt, connectionCheck, pushVersion, app, workspace } = nativeBinding
314
314
 
315
315
  module.exports.publish = publish
316
316
  module.exports.runTest = runTest
@@ -321,5 +321,6 @@ module.exports.create = create
321
321
  module.exports.updateChecker = updateChecker
322
322
  module.exports.gpt = gpt
323
323
  module.exports.connectionCheck = connectionCheck
324
+ module.exports.pushVersion = pushVersion
324
325
  module.exports.app = app
325
326
  module.exports.workspace = workspace
package/index.js CHANGED
@@ -150,7 +150,11 @@ const run = async () => {
150
150
  "Adiciona comentários na versão"
151
151
  )
152
152
  .option("-y, --yes", "Aceita automaticamente as respostas do prompt.")
153
- .action((cmdObj) => {
153
+ .action(async (cmdObj) => {
154
+ if (process.env.FT_PUSH_VERSION_V2) {
155
+ await globalEitriCLIV2.pushVersion(cmdObj);
156
+ return;
157
+ }
154
158
  require("./src/cmd/push-version")(cmdObj);
155
159
  });
156
160
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.30.2",
3
+ "version": "1.31.0",
4
4
  "description": "Command Line Interface to make \"Eitri-App\" with code and fire.",
5
5
  "main": "index.js",
6
6
  "bin": {