eitri-cli 1.37.1 → 1.38.0-beta.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.
@@ -52,6 +52,7 @@ dialoguer = "0.11.0"
52
52
  sysinfo = "0.31.2"
53
53
  ratatui = "0.28.1"
54
54
  webbrowser = "1.0.2"
55
+ serde_yaml = "0.9.34"
55
56
 
56
57
  [dependencies.uuid]
57
58
  version = "1.8.0"
@@ -82,3 +83,6 @@ napi-build = "2.0.1"
82
83
  [profile.release]
83
84
  lto = true
84
85
  strip = "symbols"
86
+
87
+ [lints.rust]
88
+ unexpected_cfgs = { level = "allow", check-cfg = ['cfg(napi)'] }
@@ -3,6 +3,9 @@
3
3
 
4
4
  /* auto-generated by NAPI-RS */
5
5
 
6
+ export interface CreateAppArguments {
7
+ applicationName: string
8
+ }
6
9
  export interface PublishArgs {
7
10
  environment: string
8
11
  message?: string
@@ -53,6 +56,7 @@ export declare function login(args: LoginArgs): Promise<void>
53
56
  export declare function version(): void
54
57
  export declare namespace app {
55
58
  export function start(args: StartArguments): Promise<void>
59
+ export function create(args: CreateAppArguments): Promise<void>
56
60
  export function appLogs(): Promise<void>
57
61
  export function clean(): Promise<void>
58
62
  }
package/index.js CHANGED
@@ -221,6 +221,18 @@ const run = async () => {
221
221
  return await globalEitriCLIV2.gpt();
222
222
  });
223
223
 
224
+ program
225
+ .command("create-app <application-name>")
226
+ .description(
227
+ "Cria múltiplos Eitri-Apps para um Aplicativo"
228
+ )
229
+ .action(async (applicationName, cmdObj) => {
230
+ return await globalEitriCLIV2.app.create({
231
+ ...cmdObj,
232
+ applicationName
233
+ });
234
+ });
235
+
224
236
  program.addCommand(VegvisirCommand());
225
237
  program.addCommand(AppCommand());
226
238
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.37.1",
3
+ "version": "1.38.0-beta.1",
4
4
  "description": "Command Line Interface to make \"Eitri-App\" with code and fire.",
5
5
  "main": "index.js",
6
6
  "bin": {