Skip to content

Commit afc8966

Browse files
Copilotalexec
andauthored
Change port flag to -p with default port 3844 (#3)
* Initial plan * Change port parameter to -p with random default Co-authored-by: alexec <1142830+alexec@users.noreply.github.com> * Change default port to 3844 Co-authored-by: alexec <1142830+alexec@users.noreply.github.com> * Merge main branch and resolve conflicts Co-authored-by: alexec <1142830+alexec@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: alexec <1142830+alexec@users.noreply.github.com> Co-authored-by: Alex Collins <alexec@users.noreply.github.com>
1 parent 35c9b23 commit afc8966

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ A tiny Go program that shows git diffs in the current directory and all git repo
88
# Build
99
go build -o diff-server .
1010

11-
# Run (default port 8080, current directory)
11+
# Run (default port 3844, current directory)
1212
./diff-server
1313

1414
# Run on custom port
15-
./diff-server -port 9000
15+
./diff-server -p 9000
1616

1717
# Scan a different directory
1818
./diff-server -C /path/to/workspace
1919
```
2020

21-
Then open http://localhost:8080 (or your custom port) in a browser to view the diffs.
21+
Then open http://localhost:3844 (or your custom port) in a browser to view the diffs.

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
func main() {
11-
port := flag.String("port", "8080", "Port to listen on")
11+
port := flag.String("p", "3844", "Port to listen on")
1212
workspaceDir := flag.String("C", ".", "Directory to scan for git repositories")
1313
flag.Parse()
1414

0 commit comments

Comments
 (0)