Skip to content

Commit 9b70464

Browse files
committed
Fix .gitignore ignoring cmd/serpapi/ directory
Root-anchor the binary ignores (/serpapi, /serpapi-test-bin) so they only match at repo root, not cmd/serpapi/main.go entry point.
1 parent ae7ce65 commit 9b70464

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Go binary
2-
serpapi
3-
serpapi-test-bin
2+
/serpapi
3+
/serpapi-test-bin
44

55
# IDE
66
.idea/

cmd/serpapi/main.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package main
2+
3+
import "github.com/serpapi/serpapi-cli/pkg/cmd"
4+
5+
func main() {
6+
cmd.Execute()
7+
}

0 commit comments

Comments
 (0)