UNPKG

@roots/bud

Version:

Configurable, extensible build tools for modern single and multi-page web applications

12 lines (11 loc) 650 B
import { jsxs as _jsxs, jsx as _jsx } from "@roots/bud-support/jsx-runtime"; import { Box, Text } from '@roots/bud-support/ink'; const DisplayEnv = ({ bud }) => { return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { color: "blue", children: ["Environment variables", `\n`] }), bud.env .getEntries() .sort((a, b) => a[0].toLowerCase().localeCompare(b[0].toLowerCase())) .map(([key, value]) => { return (_jsx(Box, { flexDirection: "row", children: _jsxs(Text, { children: [key, "=", `${value}`] }) }, key)); })] })); }; export { DisplayEnv as default };