Initial Commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { defineCommand } from "citty";
|
||||
import { ctx } from "../lib/context";
|
||||
import { serviceToDeployment } from "../lib/convert";
|
||||
|
||||
export const up = defineCommand({
|
||||
meta: {
|
||||
name: "up",
|
||||
description: "Create and start deployments",
|
||||
},
|
||||
args: {
|
||||
build: {
|
||||
type: "boolean",
|
||||
default: true,
|
||||
alias: "b",
|
||||
description: "Build images before starting deployments",
|
||||
negativeDescription: "Don't build an image, even if it's policy",
|
||||
},
|
||||
},
|
||||
async run() {
|
||||
const { project, compose } = ctx();
|
||||
const cmp = await compose();
|
||||
console.dir(serviceToDeployment(project, "app", cmp.services!.app!), {
|
||||
depth: 999,
|
||||
});
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user