FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cloudflared/fmt-check.sh at master · snake-git/cloudflared · GitHub
snake-git
/
cloudflared
Public
forked from
cloudflare/cloudflared
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cloudflared
/
fmt-check.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
14 lines (11 loc) · 356 Bytes
Breadcrumbs
cloudflared
/
fmt-check.sh
Copy path
File metadata and controls
executable file
·
14 lines (11 loc) · 356 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!
/bin/bash
set
-e -o pipefail
OUTPUT=
$(
goimports -l -d -local github.com/cloudflare/cloudflared
$(
go list -mod=vendor -f
'
{{.Dir}}
'
-a ./...
|
fgrep -v tunnelrpc
)
)
if
[
-n
"
$OUTPUT
"
]
;
then
PAGER=
$(
which colordiff
||
echo
cat
)
echo
echo
"
Code formatting issues found, use 'make fmt' to correct them
"
echo
echo
"
$OUTPUT
"
|
$PAGER
exit
1
fi
Back
|
FazBrowse Home
|
New Git URL