Skip to content

Commit 50af1c4

Browse files
committed
cp dines
1 parent b7e53dd commit 50af1c4

2 files changed

Lines changed: 4 additions & 91 deletions

File tree

src/cli.ts

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,9 @@ blueprint
453453
});
454454

455455
blueprint
456-
.command("create <name>")
456+
.command("create")
457457
.description("Create a new blueprint")
458+
.requiredOption("--name <name>", "Blueprint name (required)")
458459
.option("--dockerfile <content>", "Dockerfile contents")
459460
.option("--dockerfile-path <path>", "Dockerfile path")
460461
.option("--system-setup-commands <commands...>", "System setup commands")
@@ -470,33 +471,9 @@ blueprint
470471
"-o, --output [format]",
471472
"Output format: text|json|yaml (default: text)",
472473
)
473-
.action(async (name, options) => {
474+
.action(async (options) => {
474475
const { createBlueprint } = await import("./commands/blueprint/create.js");
475-
await createBlueprint({ name, ...options });
476-
});
477-
478-
blueprint
479-
.command("preview <name>")
480-
.description("Preview blueprint before creation")
481-
.option("--dockerfile <content>", "Dockerfile contents")
482-
.option("--system-setup-commands <commands...>", "System setup commands")
483-
.option(
484-
"--resources <size>",
485-
"Resource size (X_SMALL, SMALL, MEDIUM, LARGE, X_LARGE, XX_LARGE)",
486-
)
487-
.option("--architecture <arch>", "Architecture (arm64, x86_64)")
488-
.option("--available-ports <ports...>", "Available ports")
489-
.option("--root", "Run as root")
490-
.option("--user <user:uid>", "Run as this user (format: username:uid)")
491-
.option(
492-
"-o, --output [format]",
493-
"Output format: text|json|yaml (default: text)",
494-
)
495-
.action(async (name, options) => {
496-
const { previewBlueprint } = await import(
497-
"./commands/blueprint/preview.js"
498-
);
499-
await previewBlueprint({ name, ...options });
476+
await createBlueprint(options);
500477
});
501478

502479
blueprint

src/commands/blueprint/preview.ts

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)