|
| 1 | +import { CodeFrame, CodeGroup, CodeSource } from "@rivet-gg/components"; |
| 2 | +import installCliCmd, { |
| 3 | + source as installCliCmdSource, |
| 4 | +} from "./initial-setup-install-rivet-cli-cmd.sh?shiki&lang=bash"; |
| 5 | +import installCliPowerShell, { |
| 6 | + source as installCliPowerShellSource, |
| 7 | +} from "./initial-setup-install-rivet-cli-powershell.sh?shiki&lang=bash"; |
| 8 | +import installCliSource, { |
| 9 | + source as installCliSourceSource, |
| 10 | +} from "./initial-setup-install-rivet-cli-source.sh?shiki&lang=bash"; |
| 11 | +import installCliUnix, { |
| 12 | + source as installCliUnixSource, |
| 13 | +} from "./initial-setup-install-rivet-cli-unix.sh?shiki&lang=bash"; |
| 14 | + |
| 15 | +export function InstallCli() { |
| 16 | + return ( |
| 17 | + <CodeGroup> |
| 18 | + <CodeFrame |
| 19 | + title="macOS & Linux & WSL" |
| 20 | + code={installCliUnixSource} |
| 21 | + language="bash" |
| 22 | + > |
| 23 | + <CodeSource>{installCliUnix}</CodeSource> |
| 24 | + </CodeFrame> |
| 25 | + <CodeFrame |
| 26 | + title="Windows (cmd)" |
| 27 | + code={installCliCmdSource} |
| 28 | + language="ps1" |
| 29 | + > |
| 30 | + <CodeSource>{installCliCmd}</CodeSource> |
| 31 | + </CodeFrame> |
| 32 | + <CodeFrame |
| 33 | + title="Windows (PowerShell)" |
| 34 | + code={installCliPowerShellSource} |
| 35 | + language="powershell" |
| 36 | + > |
| 37 | + <CodeSource>{installCliPowerShell}</CodeSource> |
| 38 | + </CodeFrame> |
| 39 | + <CodeFrame |
| 40 | + title="Build from source" |
| 41 | + code={installCliSourceSource} |
| 42 | + language="bash" |
| 43 | + > |
| 44 | + <CodeSource>{installCliSource}</CodeSource> |
| 45 | + </CodeFrame> |
| 46 | + </CodeGroup> |
| 47 | + ); |
| 48 | +} |
0 commit comments