UNPKG

salat

Version:

Daily Moroccan prayers time, right in your console, at the tip of your fingers

7 lines (6 loc) 2.53 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { Box, Text } from "ink"; const HelpApp = () => { return (_jsxs(Box, { flexDirection: "column", padding: 1, borderStyle: "round", borderColor: "cyan", children: [_jsx(Box, { marginBottom: 1, justifyContent: "center", children: _jsx(Text, { bold: true, color: "cyan", children: "\u2728 SALAT CLI GUIDE \u2728" }) }), _jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsx(Text, { bold: true, underline: true, children: "Usage:" }), _jsx(Text, { children: " $ salat [command] [options]" })] }), _jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsx(Text, { bold: true, underline: true, children: "Commands:" }), _jsxs(Box, { marginLeft: 2, flexDirection: "column", children: [_jsxs(Box, { children: [_jsx(Box, { width: 20, children: _jsx(Text, { color: "yellow", children: "times [city]" }) }), _jsx(Text, { children: "Show prayer times (default)" })] }), _jsxs(Box, { children: [_jsx(Box, { width: 20, children: _jsx(Text, { color: "yellow", children: "guide" }) }), _jsx(Text, { children: "Show this rich help page" })] }), _jsxs(Box, { children: [_jsx(Box, { width: 20, children: _jsx(Text, { color: "yellow", children: "cities" }) }), _jsx(Text, { children: "Display the list of available city names" })] })] })] }), _jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsx(Text, { bold: true, underline: true, children: "Options:" }), _jsxs(Box, { marginLeft: 2, flexDirection: "column", children: [_jsxs(Box, { children: [_jsx(Box, { width: 20, children: _jsx(Text, { color: "green", children: "-1, --once" }) }), _jsx(Text, { children: "Run once and exit" })] }), _jsxs(Box, { children: [_jsx(Box, { width: 20, children: _jsx(Text, { color: "green", children: "-v, --version" }) }), _jsx(Text, { children: "Show version" })] }), _jsxs(Box, { children: [_jsx(Box, { width: 20, children: _jsx(Text, { color: "green", children: "-h, --help" }) }), _jsx(Text, { children: "Show standard text help" })] })] })] }), _jsxs(Box, { flexDirection: "column", borderStyle: "single", borderColor: "gray", paddingX: 1, children: [_jsx(Text, { italic: true, color: "gray", children: "Example:" }), _jsx(Text, { color: "white", children: " $ salat Rabat --once" }), _jsx(Text, { color: "white", children: " $ salat guide" })] }), _jsx(Box, { marginTop: 1, justifyContent: "flex-end", children: _jsx(Text, { color: "gray", children: "Tip: Press Ctrl+C to exit the live timer." }) })] })); }; export default HelpApp;