Skip to content

Commit 08bc79f

Browse files
chore(telegraf): update telegraf configuration doc (#6517)
* chore(telegraf): update telegraf configuration doc, closes #6448 * Apply suggestions from code review Co-authored-by: Jason Stirnaman <[email protected]> --------- Co-authored-by: Jason Stirnaman <[email protected]>
1 parent 07bfb6f commit 08bc79f

File tree

4 files changed

+431
-163
lines changed

4 files changed

+431
-163
lines changed

.husky/_/pre-commit

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ call_lefthook()
3333
then
3434
"$dir/node_modules/lefthook/bin/index.js" "$@"
3535

36-
elif go tool lefthook -h >/dev/null 2>&1
37-
then
38-
go tool lefthook "$@"
3936
elif bundle exec lefthook -h >/dev/null 2>&1
4037
then
4138
bundle exec lefthook "$@"
@@ -45,21 +42,12 @@ call_lefthook()
4542
elif pnpm lefthook -h >/dev/null 2>&1
4643
then
4744
pnpm lefthook "$@"
48-
elif swift package lefthook >/dev/null 2>&1
45+
elif swift package plugin lefthook >/dev/null 2>&1
4946
then
50-
swift package --build-path .build/lefthook --disable-sandbox lefthook "$@"
47+
swift package --disable-sandbox plugin lefthook "$@"
5148
elif command -v mint >/dev/null 2>&1
5249
then
5350
mint run csjones/lefthook-plugin "$@"
54-
elif uv run lefthook -h >/dev/null 2>&1
55-
then
56-
uv run lefthook "$@"
57-
elif mise exec -- lefthook -h >/dev/null 2>&1
58-
then
59-
mise exec -- lefthook "$@"
60-
elif devbox run lefthook -h >/dev/null 2>&1
61-
then
62-
devbox run lefthook "$@"
6351
else
6452
echo "Can't find lefthook in PATH"
6553
fi

.husky/_/pre-push

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ call_lefthook()
3333
then
3434
"$dir/node_modules/lefthook/bin/index.js" "$@"
3535

36-
elif go tool lefthook -h >/dev/null 2>&1
37-
then
38-
go tool lefthook "$@"
3936
elif bundle exec lefthook -h >/dev/null 2>&1
4037
then
4138
bundle exec lefthook "$@"
@@ -45,21 +42,12 @@ call_lefthook()
4542
elif pnpm lefthook -h >/dev/null 2>&1
4643
then
4744
pnpm lefthook "$@"
48-
elif swift package lefthook >/dev/null 2>&1
45+
elif swift package plugin lefthook >/dev/null 2>&1
4946
then
50-
swift package --build-path .build/lefthook --disable-sandbox lefthook "$@"
47+
swift package --disable-sandbox plugin lefthook "$@"
5148
elif command -v mint >/dev/null 2>&1
5249
then
5350
mint run csjones/lefthook-plugin "$@"
54-
elif uv run lefthook -h >/dev/null 2>&1
55-
then
56-
uv run lefthook "$@"
57-
elif mise exec -- lefthook -h >/dev/null 2>&1
58-
then
59-
mise exec -- lefthook "$@"
60-
elif devbox run lefthook -h >/dev/null 2>&1
61-
then
62-
devbox run lefthook "$@"
6351
else
6452
echo "Can't find lefthook in PATH"
6553
fi

.husky/_/prepare-commit-msg

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ call_lefthook()
3333
then
3434
"$dir/node_modules/lefthook/bin/index.js" "$@"
3535

36-
elif go tool lefthook -h >/dev/null 2>&1
37-
then
38-
go tool lefthook "$@"
3936
elif bundle exec lefthook -h >/dev/null 2>&1
4037
then
4138
bundle exec lefthook "$@"
@@ -45,21 +42,12 @@ call_lefthook()
4542
elif pnpm lefthook -h >/dev/null 2>&1
4643
then
4744
pnpm lefthook "$@"
48-
elif swift package lefthook >/dev/null 2>&1
45+
elif swift package plugin lefthook >/dev/null 2>&1
4946
then
50-
swift package --build-path .build/lefthook --disable-sandbox lefthook "$@"
47+
swift package --disable-sandbox plugin lefthook "$@"
5148
elif command -v mint >/dev/null 2>&1
5249
then
5350
mint run csjones/lefthook-plugin "$@"
54-
elif uv run lefthook -h >/dev/null 2>&1
55-
then
56-
uv run lefthook "$@"
57-
elif mise exec -- lefthook -h >/dev/null 2>&1
58-
then
59-
mise exec -- lefthook "$@"
60-
elif devbox run lefthook -h >/dev/null 2>&1
61-
then
62-
devbox run lefthook "$@"
6351
else
6452
echo "Can't find lefthook in PATH"
6553
fi

0 commit comments

Comments
 (0)