eitri-cli 1.37.1 → 1.38.0-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.
@@ -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,10 @@
3
3
 
4
4
  /* auto-generated by NAPI-RS */
5
5
 
6
+ export interface CreateAppArguments {
7
+ applicationName: string
8
+ verbose?: boolean
9
+ }
6
10
  export interface PublishArgs {
7
11
  environment: string
8
12
  message?: string
@@ -53,6 +57,7 @@ export declare function login(args: LoginArgs): Promise<void>
53
57
  export declare function version(): void
54
58
  export declare namespace app {
55
59
  export function start(args: StartArguments): Promise<void>
60
+ export function create(args: CreateAppArguments): Promise<void>
56
61
  export function appLogs(): Promise<void>
57
62
  export function clean(): Promise<void>
58
63
  }
package/index.js CHANGED
@@ -221,6 +221,19 @@ 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
+ .option("-v, --verbose", "Exibe mais logs")
230
+ .action(async (applicationName, cmdObj) => {
231
+ return await globalEitriCLIV2.app.create({
232
+ ...cmdObj,
233
+ applicationName
234
+ });
235
+ });
236
+
224
237
  program.addCommand(VegvisirCommand());
225
238
  program.addCommand(AppCommand());
226
239
 
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.2",
4
4
  "description": "Command Line Interface to make \"Eitri-App\" with code and fire.",
5
5
  "main": "index.js",
6
6
  "bin": {