-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathccswitch.bat
More file actions
31 lines (27 loc) · 768 Bytes
/
Copy pathccswitch.bat
File metadata and controls
31 lines (27 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
setlocal enabledelayedexpansion
set PROFILE=%1
set CLAUDE_DIR=%USERPROFILE%\.claude
if "%PROFILE%"=="" (
set "PROFILES_LIST="
for %%f in ("%CLAUDE_DIR%\profiles\*.json") do (
if defined PROFILES_LIST (
set "PROFILES_LIST=!PROFILES_LIST!|%%~nf"
) else (
set "PROFILES_LIST=%%~nf"
)
)
echo Usage: ccswitch [!PROFILES_LIST!^|default]
exit /b 1
)
if "%PROFILE%"=="default" (
del "%CLAUDE_DIR%\settings.json" 2>nul
echo Switched to: direct Anthropic
exit /b 0
)
if not exist "%CLAUDE_DIR%\profiles\%PROFILE%.json" (
echo Profile not found: %PROFILE%
exit /b 1
)
copy /y "%CLAUDE_DIR%\profiles\%PROFILE%.json" "%CLAUDE_DIR%\settings.json" >nul
echo Switched to: %PROFILE%