Skip to content

Commit 8be2b0f

Browse files
committed
Rename CLI command from 'sc' to 'srcc' in build scripts and main application for consistency. Update output file names and help instructions accordingly.
1 parent ee0840c commit 8be2b0f

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

scripts/build-linux.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ echo ""
1414
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1515
BUILD_DIR="$SCRIPT_DIR/../sourcecontrol"
1616
OUTPUT_DIR="$HOME/.local/bin"
17-
OUTPUT_FILE="$OUTPUT_DIR/sc"
17+
OUTPUT_FILE="$OUTPUT_DIR/srcc"
1818

1919
# Get version info
2020
COMMIT_SHA=$(git rev-parse --short HEAD 2>/dev/null || echo "unknown")
@@ -78,8 +78,8 @@ echo ""
7878
echo "Executable location: $OUTPUT_FILE"
7979
echo ""
8080
echo "You can now run:"
81-
echo " sc --help"
81+
echo " srcc --help"
8282
echo ""
83-
echo "If 'sc' is not recognized, run:"
83+
echo "If 'srcc' is not recognized, run:"
8484
echo " source $SHELL_CONFIG"
8585
echo ""

scripts/build-windows.bat

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ echo.
1212
REM Set build directory
1313
set BUILD_DIR=%~dp0..\sourcecontrol
1414
set OUTPUT_DIR=%USERPROFILE%\.sourcecontrol\bin
15-
set OUTPUT_FILE=%OUTPUT_DIR%\sc.exe
15+
set OUTPUT_FILE=%OUTPUT_DIR%\srcc.exe
1616

1717
REM Get version info
1818
for /f "tokens=*" %%i in ('git rev-parse --short HEAD 2^>nul') do set COMMIT_SHA=%%i
@@ -23,7 +23,7 @@ for /f "tokens=*" %%i in ('powershell -Command "Get-Date -Format 'yyyy-MM-dd_HH:
2323
set VERSION=0.1.0
2424

2525
echo [1/5] Cleaning previous builds...
26-
if exist "%OUTPUT_DIR%\sc.exe" del /q "%OUTPUT_DIR%\sc.exe"
26+
if exist "%OUTPUT_DIR%\srcc.exe" del /q "%OUTPUT_DIR%\srcc.exe"
2727

2828
echo [2/5] Creating output directory...
2929
if not exist "%OUTPUT_DIR%" mkdir "%OUTPUT_DIR%"
@@ -53,22 +53,22 @@ if errorlevel 1 (
5353
echo Adding to PATH...
5454
setx PATH "%PATH%;%OUTPUT_DIR%"
5555
echo.
56-
echo ⚠️ PATH updated! Please restart your terminal for changes to take effect.
56+
echo PATH updated! Please restart your terminal for changes to take effect.
5757
) else (
5858
echo PATH already configured.
5959
)
6060

6161
echo.
6262
echo ========================================
63-
echo Build completed successfully!
63+
echo Build completed successfully!
6464
echo ========================================
6565
echo.
6666
echo Executable location: %OUTPUT_FILE%
6767
echo.
6868
echo You can now run:
69-
echo sc --help
69+
echo srcc --help
7070
echo.
71-
echo If 'sc' is not recognized, restart your terminal.
71+
echo If 'srcc' is not recognized, restart your terminal.
7272
echo.
7373

7474
endlocal

sourcecontrol/cmd/sourcecontrol/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var (
2222

2323
func main() {
2424
rootCmd := &cobra.Command{
25-
Use: "sc",
25+
Use: "srcc",
2626
Short: "SourceControl - A Git implementation in Go",
2727
Long: getBanner(),
2828
Version: fmt.Sprintf("%s (built: %s, commit: %s)", Version, BuildTime, CommitSHA),
@@ -78,9 +78,9 @@ func getBanner() string {
7878
🔧 Familiar Git-style commands
7979
💻 Built with Go for performance
8080
81-
Get started with: sc init
82-
Check status with: sc status
83-
Need help? Run: sc --help
81+
Get started with: srcc init
82+
Check status with: srcc status
83+
Need help? Run: srcc --help
8484
8585
`
8686
}

0 commit comments

Comments
 (0)