UNPKG

studiocms

Version:

Astro Native CMS for AstroDB. Built from the ground up by the Astro community.

16 lines (15 loc) 541 B
import { runInteractiveCommand } from "@withstudiocms/cli-kit/utils"; import { Cli, Effect } from "../../effect.js"; const getTurso = Cli.Command.make( "get-turso", {}, () => Effect.tryPromise({ try: () => runInteractiveCommand("curl -sSfL https://get.tur.so/install.sh | bash").then( () => console.log("Turso CLI install command completed.") ), catch: (error) => console.error(`Failed to run Turso install: ${error.message}`) }) ).pipe(Cli.Command.withDescription("Install the Turso CLI")); export { getTurso };