@@ -61,17 +61,50 @@ dependencies {
6161
6262### 1. Using as Library for CLI
6363
64- After adding the library as a dependency, you can set up an alias to use it as CLI:
64+ After adding the library as a dependency, you can set up an alias to use it as CLI.
6565
66+ #### 🚀 Easy Alias Setup Method
67+
68+ ** macOS/Linux:**
69+ ``` bash
70+ # One-liner alias setup
71+ echo " alias cch=\" java -jar \$ (find ~/.gradle/caches -name \" *commit-chronicle*\" -type f | grep \" \.jar$\" | head -1)\" " >> ~ /.zshrc && source ~ /.zshrc
72+
73+ # Or step-by-step setup
74+ JAR_PATH=$( find ~ /.gradle/caches -name " *commit-chronicle*" -type f | grep " \.jar$" | head -1)
75+ echo " alias cch=\" java -jar $JAR_PATH \" " >> ~ /.zshrc
76+ source ~ /.zshrc
77+ ```
78+
79+ ** Windows (PowerShell):**
80+ ``` powershell
81+ # Find JAR file path
82+ $jarPath = Get-ChildItem -Path "$env:USERPROFILE\.gradle\caches" -Recurse -Name "*commit-chronicle*.jar" | Select-Object -First 1
83+ $fullPath = Join-Path "$env:USERPROFILE\.gradle\caches" $jarPath
84+
85+ # Set up alias
86+ echo "function cch { java -jar `"$fullPath`" @args }" >> $PROFILE
87+ . $PROFILE
88+ ```
89+
90+ #### Manual Setup Method
91+
92+ ** Find JAR file path:**
6693``` bash
67- # Find JAR file path in Gradle cache
68- find ~ /.gradle/caches -name " commitchronicle-0.1.0.jar " -type f
94+ # macOS/Linux
95+ find ~ /.gradle/caches -name " *commit-chronicle* " -type f | grep " \.jar$ "
6996
70- # Set up alias (example - modify with actual path)
71- alias cch=" java -jar ~/.gradle/caches/modules-2/files-2.1/com.github.hj4645/commit-chronicle/1.0.0/*/commitchronicle-1.0.0.jar"
97+ # Windows (PowerShell)
98+ Get-ChildItem -Path " $env :USERPROFILE\.gradle\caches" -Recurse -Name " *commit-chronicle*.jar"
99+ ```
100+
101+ ** Set up alias:**
102+ ``` bash
103+ # macOS/Linux
104+ alias cch=" java -jar /actual/jar/file/path/commit-chronicle-1.0.0.jar"
72105
73- # Or use directly downloaded JAR file
74- alias cch= " java -jar / path/to/commitchronicle-0. 1.0.jar"
106+ # Windows (PowerShell)
107+ function cch { java -jar " C:\actual\jar\file\ path\commit-chronicle- 1.0.0. jar" @args }
75108` ` `
76109
77110# ## 2. Initial Setup
0 commit comments