mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat(cli): add prisma create-db setup (#419)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { execa } from "execa";
|
||||
|
||||
export async function commandExists(command: string): Promise<boolean> {
|
||||
export async function commandExists(command: string) {
|
||||
try {
|
||||
const isWindows = process.platform === "win32";
|
||||
if (isWindows) {
|
||||
|
||||
@@ -3,11 +3,11 @@ import pc from "picocolors";
|
||||
import type { Database } from "../types";
|
||||
import { commandExists } from "./command-exists";
|
||||
|
||||
export async function isDockerInstalled(): Promise<boolean> {
|
||||
export async function isDockerInstalled() {
|
||||
return commandExists("docker");
|
||||
}
|
||||
|
||||
export async function isDockerRunning(): Promise<boolean> {
|
||||
export async function isDockerRunning() {
|
||||
try {
|
||||
const { $ } = await import("execa");
|
||||
await $`docker info`;
|
||||
|
||||
Reference in New Issue
Block a user