Compare commits

...

3 Commits

Author SHA1 Message Date
IamTheFij dd88246d86 Add drone configs
continuous-integration/drone/push Build is passing Details
2021-05-13 13:49:41 -07:00
IamTheFij f632b1c477 Revert "Move mod to v2"
This reverts commit f79002168e.
2021-04-29 09:22:47 -07:00
IamTheFij 902c397641 Revert "Update docs for new package path"
This reverts commit 7b1a0ac5f8.
2021-04-29 09:22:39 -07:00
5 changed files with 36 additions and 4 deletions

32
.drone.yml Normal file
View File

@ -0,0 +1,32 @@
---
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

View File

@ -18,5 +18,5 @@ check:
pre-commit run --all-files
README.md: ./add-docs-to-readme.sh *.go go.mod
README.md: ./add-docs-to-readme.sh *.go
./add-docs-to-readme.sh

View File

@ -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.
## Documentation
package slog // import "git.iamthefij.com/iamthefij/slog/v2"
package slog // import "git.iamthefij.com/iamthefij/slog"
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

View File

@ -4,5 +4,5 @@ set -e
slogdir=$(dirname "$0")
readme="$slogdir/README.md"
awk '/## Documentation/ {print ; exit} {print}' "$readme" > "$readme.tmp" && go doc -all slog/v2 | sed "s/^/ /;s/[ \t]*$//" >> "$readme.tmp"
awk '/## Documentation/ {print ; exit} {print}' "$readme" > "$readme.tmp" && go doc -all slog | sed "s/^/ /;s/[ \t]*$//" >> "$readme.tmp"
mv "$readme.tmp" "$readme"

2
go.mod
View File

@ -1,3 +1,3 @@
module git.iamthefij.com/iamthefij/slog/v2
module git.iamthefij.com/iamthefij/slog
go 1.15