Compare commits
No commits in common. "master" and "v2.0.0" have entirely different histories.
32
.drone.yml
32
.drone.yml
@ -1,32 +0,0 @@
|
|||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
name: test
|
|
||||||
|
|
||||||
steps:
|
|
||||||
|
|
||||||
- name: check
|
|
||||||
image: iamthefij/drone-pre-commit:personal
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
name: notify
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- test
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
status:
|
|
||||||
- failure
|
|
||||||
|
|
||||||
steps:
|
|
||||||
|
|
||||||
- name: notify
|
|
||||||
image: drillster/drone-email
|
|
||||||
settings:
|
|
||||||
host:
|
|
||||||
from_secret: SMTP_HOST # pragma: whitelist secret
|
|
||||||
username:
|
|
||||||
from_secret: SMTP_USER # pragma: whitelist secret
|
|
||||||
password:
|
|
||||||
from_secret: SMTP_PASS # pragma: whitelist secret
|
|
||||||
from: drone@iamthefij.com
|
|
2
Makefile
2
Makefile
@ -18,5 +18,5 @@ check:
|
|||||||
pre-commit run --all-files
|
pre-commit run --all-files
|
||||||
|
|
||||||
|
|
||||||
README.md: ./add-docs-to-readme.sh *.go
|
README.md: ./add-docs-to-readme.sh *.go go.mod
|
||||||
./add-docs-to-readme.sh
|
./add-docs-to-readme.sh
|
||||||
|
@ -11,7 +11,7 @@ Slog lets you hide or show debug logs as well as provides a simpler way to log m
|
|||||||
Also provided are a few simple methods for handling returned `error` variables, logging them out and optionally panicing or fatally exiting.
|
Also provided are a few simple methods for handling returned `error` variables, logging them out and optionally panicing or fatally exiting.
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
package slog // import "git.iamthefij.com/iamthefij/slog"
|
package slog // import "git.iamthefij.com/iamthefij/slog/v2"
|
||||||
|
|
||||||
Package slog is a super simple logger that allows a few convenience methods
|
Package slog is a super simple logger that allows a few convenience methods
|
||||||
for handling debug vs warning/error logs. It also adds a few conveniences
|
for handling debug vs warning/error logs. It also adds a few conveniences
|
||||||
|
@ -4,5 +4,5 @@ set -e
|
|||||||
slogdir=$(dirname "$0")
|
slogdir=$(dirname "$0")
|
||||||
readme="$slogdir/README.md"
|
readme="$slogdir/README.md"
|
||||||
|
|
||||||
awk '/## Documentation/ {print ; exit} {print}' "$readme" > "$readme.tmp" && go doc -all slog | sed "s/^/ /;s/[ \t]*$//" >> "$readme.tmp"
|
awk '/## Documentation/ {print ; exit} {print}' "$readme" > "$readme.tmp" && go doc -all slog/v2 | sed "s/^/ /;s/[ \t]*$//" >> "$readme.tmp"
|
||||||
mv "$readme.tmp" "$readme"
|
mv "$readme.tmp" "$readme"
|
||||||
|
Loading…
Reference in New Issue
Block a user