File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7878 - name : Build
7979 run : |
8080 if [ "${{ matrix.os }}" = "windows-latest" ]; then
81- go build -v -o ${{ matrix.artifact_name }} -ldflags="-s -w" ./src
81+ go build -v -o ${{ matrix.artifact_name }} -ldflags="-s -w" ./cmd/commit-msg
8282 else
83- go build -v -o ${{ matrix.artifact_name }} -ldflags="-s -w" ./src
83+ go build -v -o ${{ matrix.artifact_name }} -ldflags="-s -w" ./cmd/commit-msg
8484 fi
8585 shell : bash
8686
Original file line number Diff line number Diff line change @@ -104,12 +104,12 @@ Improving documentation is always appreciated:
1041043 . Run the application:
105105
106106 ``` bash
107- go run src /main.go .
107+ go run cmd/commit-msg /main.go .
108108 ```
109109
1101104 . Build the executable:
111111 ``` bash
112- go build -o commit.exe src /main.go
112+ go build -o commit.exe cmd/commit-msg /main.go
113113 ```
114114
115115### Testing Your Changes
Original file line number Diff line number Diff line change 1111
1212Below is a sample execution of ` commit-msg ` :
1313
14- ![ Commit-msg GIF] ( commit.gif )
14+ ![ Commit-msg GIF] ( assets/ commit.gif)
1515
1616Before running the application, ensure you have set the system environment variables. and add commit.exe to path variables (same for linux macOS)
1717
@@ -102,7 +102,7 @@ cd commit-msg
102102go mod download
103103
104104# Build the executable
105- go build -o commit src /main.go
105+ go build -o commit cmd/commit-msg /main.go
106106
107107# (Optional) Install to GOPATH
108108go install
@@ -123,7 +123,7 @@ commit .
123123Or if running from source:
124124
125125``` bash
126- go run src /main.go .
126+ go run cmd/commit-msg /main.go .
127127```
128128
129129### Example Workflow
You can’t perform that action at this time.
0 commit comments