Skip to content

Commit deb1664

Browse files
authored
feat: bun command tab and lower case commands (tauri-apps#2212)
1 parent cd169e4 commit deb1664

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/components/CommandTabs.astro

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ interface Props {
66
npm?: string;
77
yarn?: string;
88
pnpm?: string;
9+
bun?: string;
910
cargo?: string;
1011
}
1112
12-
const { npm, yarn, pnpm, cargo } = Astro.props;
13+
const { npm, yarn, pnpm, bun, cargo } = Astro.props;
1314
---
1415

1516
<Tabs>
@@ -22,7 +23,7 @@ const { npm, yarn, pnpm, cargo } = Astro.props;
2223
}
2324
{
2425
yarn && (
25-
<TabItem label="Yarn">
26+
<TabItem label="yarn">
2627
<Code code={yarn} lang="sh" theme="css-variables" frame="none" />
2728
</TabItem>
2829
)
@@ -34,9 +35,16 @@ const { npm, yarn, pnpm, cargo } = Astro.props;
3435
</TabItem>
3536
)
3637
}
38+
{
39+
bun && (
40+
<TabItem label="bun">
41+
<Code code={bun} lang="sh" theme="css-variables" frame="none" />
42+
</TabItem>
43+
)
44+
}
3745
{
3846
cargo && (
39-
<TabItem label="Cargo">
47+
<TabItem label="cargo">
4048
<Code code={cargo} lang="sh" theme="css-variables" frame="none" />
4149
</TabItem>
4250
)

0 commit comments

Comments
 (0)