studiocms
Version:
Astro Native CMS for AstroDB. Built from the ground up by the Astro community.
13 lines (11 loc) • 526 B
text/typescript
import { runInteractiveCommand } from '@withstudiocms/cli-kit/utils';
import { Cli, Effect } from '../../effect.js';
export 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 as Error).message}`),
})
).pipe(Cli.Command.withDescription('Install the Turso CLI'));