refactor: modularize cli helpers

This commit is contained in:
Peter Steinberger
2025-11-25 03:42:12 +01:00
parent 5c5a103abb
commit a89d7319a9
14 changed files with 591 additions and 777 deletions

View File

@@ -1,5 +1,7 @@
import { info } from "../globals.js";
import type { CliDeps, Provider, RuntimeEnv } from "../index.js";
import type { CliDeps } from "../cli/deps.js";
import type { Provider } from "../utils.js";
import type { RuntimeEnv } from "../runtime.js";
export async function sendCommand(
opts: {

View File

@@ -1,5 +1,6 @@
import type { CliDeps, RuntimeEnv } from "../index.js";
import { formatMessageLine } from "../index.js";
import type { CliDeps } from "../cli/deps.js";
import type { RuntimeEnv } from "../runtime.js";
import { formatMessageLine } from "../twilio/messages.js";
export async function statusCommand(
opts: { limit: string; lookback: string; json?: boolean },

View File

@@ -1,5 +1,6 @@
import type { CliDeps, RuntimeEnv } from "../index.js";
import { waitForever as defaultWaitForever } from "../index.js";
import type { CliDeps } from "../cli/deps.js";
import type { RuntimeEnv } from "../runtime.js";
import { waitForever as defaultWaitForever } from "../cli/wait.js";
export async function upCommand(
opts: { port: string; path: string; verbose?: boolean; yes?: boolean },

View File

@@ -1,4 +1,5 @@
import type { CliDeps, RuntimeEnv } from "../index.js";
import type { CliDeps } from "../cli/deps.js";
import type { RuntimeEnv } from "../runtime.js";
export async function webhookCommand(
opts: {