Skip to content

Commit

Permalink
fix: use cmd
Browse files Browse the repository at this point in the history
Signed-off-by: divanshu-go <divanshugrover2009@gmail.com>
  • Loading branch information
divanshu-go committed Dec 29, 2024
1 parent 2815847 commit 66862cb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Binary file modified screenpipe-app-tauri/bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions screenpipe-app-tauri/components/cli-command-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
DialogTitle,
} from "./ui/dialog";
import { CodeBlock } from "./ui/codeblock";
import usePlatform from '@/lib/hooks/usePlatform';
import usePlatform from '@/lib/hooks/use-platform';
import { useCopyToClipboard } from "@/lib/hooks/use-copy-to-clipboard";
import { useToast } from "@/components/ui/use-toast";
import { IconCode } from "./ui/icons";
Expand Down Expand Up @@ -140,7 +140,7 @@ export function CliCommandDialog({ settings }: CliCommandDialogProps) {
</DialogHeader>
<div className="overflow-x-auto">
<CodeBlock
language={usePlatform() === "windows" ? "powershell" : "bash"}
language={usePlatform() === "windows" ? "cmd" : "bash"}
value={generateCliCommand()}
/>
</div>
Expand Down
4 changes: 2 additions & 2 deletions screenpipe-app-tauri/components/dev-mode-settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { useState } from "react";

import { CodeBlock } from "@/components/ui/codeblock";
import { platform } from "@tauri-apps/plugin-os";
import usePlatform from '@/lib/hooks/usePlatform';
import usePlatform from '@/lib/hooks/use-platform';
import { Label } from "./ui/label";
import { Switch } from "./ui/switch";
import { useSettings } from "@/lib/hooks/use-settings";
Expand Down Expand Up @@ -271,7 +271,7 @@ export const DevModeSettings = ({ localDataDir }: { localDataDir: string }) => {
thru CLI 👇
</p>
<CodeBlock
language={usePlatform() === "windows" ? "powershell" : "bash"}
language={usePlatform() === "windows" ? "cmd" : "bash"}
value={getDebuggingCommands(platform(), localDataDir)}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useEffect, useState } from "react";
import { ArrowUpRight } from "lucide-react";
import { open } from "@tauri-apps/plugin-shell";
import { platform } from "@tauri-apps/plugin-os";
import usePlatform from '@/lib/hooks/usePlatform';
import usePlatform from '@/lib/hooks/use-platform';
import { CodeBlock } from "@/components/onboarding/single-codeblock";
import { DialogHeader, DialogTitle } from "@/components/ui/dialog";
import OnboardingNavigation from "@/components/onboarding/navigation";
Expand Down Expand Up @@ -126,7 +126,7 @@ const OnboardingDevConfig: React.FC<OnboardingDevConfigProps> = ({
</p>
<CodeBlock
className="rounded-md mt-2"
language={usePlatform() === "windows" ? "powershell" : "bash"}
language={usePlatform() === "windows" ? "cmd" : "bash"}
value={instructions.command}
/>
</li>
Expand Down

0 comments on commit 66862cb

Please sign in to comment.