UNPKG

@reliverse/rse-sdk

Version:

@reliverse/rse-sdk allows you to create new plugins for @reliverse/rse CLI, interact with reliverse.org, and even extend your own CLI functionality (you may also try @reliverse/dler-sdk for this case).

27 lines (26 loc) 860 B
import { endPrompt, startPrompt } from "@reliverse/rempts"; import { isBun, isBunPM, isBunRuntime } from "@reliverse/runtime"; import { cliVersion } from "../../../../../constants.js"; export async function showStartPrompt(isDev, showRuntimeInfo) { await startPrompt({ titleColor: "inverse", clearConsole: true, packageName: "@reliverse/rse", packageVersion: cliVersion, isDev }); if (showRuntimeInfo) { console.log("isBunRuntime:", isBunRuntime()); console.log("isBunPM:", await isBunPM()); console.log("isBun:", isBun); } } export async function showEndPrompt() { await endPrompt({ title: "\u2502 \u2764\uFE0F Please consider supporting rse development: https://github.com/sponsors/blefnk", titleAnimation: "glitch", titleColor: "dim", titleTypography: "bold", titleAnimationDelay: 800 }); }