Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions src/cli/commands/functions/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,9 @@ async function deployFunctionsAction(): Promise<RunCommandResult> {
}

export function getFunctionsDeployCommand(context: CLIContext): Command {
return new Command("functions")
.description("Manage project functions")
.addCommand(
new Command("deploy")
.description("Deploy local functions to Base44")
.action(async () => {
await runCommand(
deployFunctionsAction,
{ requireAuth: true },
context
);
})
);
return new Command("deploy")
.description("Deploy local functions to Base44")
.action(async () => {
await runCommand(deployFunctionsAction, { requireAuth: true }, context);
});
}
9 changes: 9 additions & 0 deletions src/cli/commands/functions/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Command } from "commander";
import type { CLIContext } from "@/cli/types.js";
import { getFunctionsDeployCommand } from "./deploy.js";

export function getFunctionsCommand(context: CLIContext): Command {
return new Command("functions")
.description("Manage project functions")
.addCommand(getFunctionsDeployCommand(context));
}
Loading
Loading