Skip to content

Commit 58c2527

Browse files
committed
cp dines
1 parent a1dea65 commit 58c2527

1 file changed

Lines changed: 20 additions & 30 deletions

File tree

src/utils/commands.ts

Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,8 @@ export function createProgram(): Command {
386386
"Output format: text|json|yaml (default: text)",
387387
)
388388
.action(async (snapshotId, options) => {
389-
const { getSnapshotStatus } = await import(
390-
"../commands/snapshot/status.js"
391-
);
389+
const { getSnapshotStatus } =
390+
await import("../commands/snapshot/status.js");
392391
await getSnapshotStatus({ snapshotId, ...options });
393392
});
394393

@@ -431,9 +430,8 @@ export function createProgram(): Command {
431430
"Output format: text|json|yaml (default: json)",
432431
)
433432
.action(async (options) => {
434-
const { createBlueprint } = await import(
435-
"../commands/blueprint/create.js"
436-
);
433+
const { createBlueprint } =
434+
await import("../commands/blueprint/create.js");
437435
await createBlueprint(options);
438436
});
439437

@@ -457,9 +455,8 @@ export function createProgram(): Command {
457455
"Output format: text|json|yaml (default: text)",
458456
)
459457
.action(async (id, options) => {
460-
const { getBlueprintLogs } = await import(
461-
"../commands/blueprint/logs.js"
462-
);
458+
const { getBlueprintLogs } =
459+
await import("../commands/blueprint/logs.js");
463460
await getBlueprintLogs({ id, ...options });
464461
});
465462

@@ -476,9 +473,8 @@ export function createProgram(): Command {
476473
"Output format: text|json|yaml (default: text)",
477474
)
478475
.action(async (name, options) => {
479-
const { pruneBlueprints } = await import(
480-
"../commands/blueprint/prune.js"
481-
);
476+
const { pruneBlueprints } =
477+
await import("../commands/blueprint/prune.js");
482478
await pruneBlueprints(name, options);
483479
});
484480

@@ -514,9 +510,8 @@ export function createProgram(): Command {
514510
"Output format: text|json|yaml (default: json)",
515511
)
516512
.action(async (options) => {
517-
const { createBlueprintFromDockerfile } = await import(
518-
"../commands/blueprint/from-dockerfile.js"
519-
);
513+
const { createBlueprintFromDockerfile } =
514+
await import("../commands/blueprint/from-dockerfile.js");
520515
await createBlueprintFromDockerfile(options);
521516
});
522517

@@ -594,9 +589,8 @@ export function createProgram(): Command {
594589
.action(async (path, options) => {
595590
const { uploadObject } = await import("../commands/object/upload.js");
596591
if (!options.output) {
597-
const { runInteractiveCommand } = await import(
598-
"../utils/interactiveCommand.js"
599-
);
592+
const { runInteractiveCommand } =
593+
await import("../utils/interactiveCommand.js");
600594
await runInteractiveCommand(() => uploadObject({ path, ...options }));
601595
} else {
602596
await uploadObject({ path, ...options });
@@ -632,9 +626,8 @@ export function createProgram(): Command {
632626
"Output format: text|json|yaml (default: json)",
633627
)
634628
.action(async (options) => {
635-
const { listNetworkPolicies } = await import(
636-
"../commands/network-policy/list.js"
637-
);
629+
const { listNetworkPolicies } =
630+
await import("../commands/network-policy/list.js");
638631
await listNetworkPolicies(options);
639632
});
640633

@@ -646,9 +639,8 @@ export function createProgram(): Command {
646639
"Output format: text|json|yaml (default: json)",
647640
)
648641
.action(async (id, options) => {
649-
const { getNetworkPolicy } = await import(
650-
"../commands/network-policy/get.js"
651-
);
642+
const { getNetworkPolicy } =
643+
await import("../commands/network-policy/get.js");
652644
await getNetworkPolicy({ id, ...options });
653645
});
654646

@@ -668,9 +660,8 @@ export function createProgram(): Command {
668660
"Output format: text|json|yaml (default: text)",
669661
)
670662
.action(async (options) => {
671-
const { createNetworkPolicy } = await import(
672-
"../commands/network-policy/create.js"
673-
);
663+
const { createNetworkPolicy } =
664+
await import("../commands/network-policy/create.js");
674665
await createNetworkPolicy(options);
675666
});
676667

@@ -683,9 +674,8 @@ export function createProgram(): Command {
683674
"Output format: text|json|yaml (default: text)",
684675
)
685676
.action(async (id, options) => {
686-
const { deleteNetworkPolicy } = await import(
687-
"../commands/network-policy/delete.js"
688-
);
677+
const { deleteNetworkPolicy } =
678+
await import("../commands/network-policy/delete.js");
689679
await deleteNetworkPolicy(id, options);
690680
});
691681

0 commit comments

Comments
 (0)