We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3b9f8c commit 163b553Copy full SHA for 163b553
justfile
@@ -78,6 +78,17 @@ generate-env:
78
go-test:
79
go list -f '{{{{.Dir}}' -m | xargs -I {} go test {}/...
80
81
+kill-port port:
82
+ #!/usr/bin/env bash
83
+ set -euo pipefail
84
+ pid=$(ss -tlnp | grep ":{{ port }} " | sed -n 's/.*pid=\([0-9]*\).*/\1/p' | head -1)
85
+ if [ -n "$pid" ]; then
86
+ echo "Killing process $pid on port {{ port }}"
87
+ kill -9 $pid
88
+ else
89
+ echo "No process found on port {{ port }}"
90
+ fi
91
+
92
lint target="all":
93
#!/usr/bin/env bash
94
set -euox pipefail
0 commit comments