Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
704605659e | ||
|
|
11245b85ca |
No files matched your search
@@ -179,15 +179,14 @@ by copying them into other projects or referencing them directly.
|
||||
|
||||
## Template Repos
|
||||
|
||||
This template repository implements the policies defined in this repo and serves
|
||||
as a starting point for new projects. It must be kept in sync when policies
|
||||
change.
|
||||
These template repositories implement the policies defined in this repo and
|
||||
serve as starting points for new projects. They must be kept in sync when
|
||||
policies change.
|
||||
|
||||
- **[template-app-go](https://git.eeqj.de/sneak/template-app-go)** — Go HTTP
|
||||
server template (Uber fx, chi, SQLite, session auth, Prometheus metrics)
|
||||
|
||||
When updating policies in this repo, also update the template repo to match
|
||||
(Makefile targets, Dockerfile conventions, CI workflows, required files, etc.).
|
||||
- **[go-template-repo](https://git.eeqj.de/clawbot/go-template-repo)** — Go HTTP
|
||||
service template, with a script that renames it for a new project
|
||||
|
||||
## See Also
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@ ROOT="$(cd "$(dirname "$0")/.." && pwd -P)"
|
||||
main() {
|
||||
cd "$ROOT"
|
||||
hook=".git/hooks/pre-commit"
|
||||
printf '#!/bin/sh\nset -e\nscript/precommit\n' > .git/hooks/pre-commit
|
||||
chmod +x .git/hooks/pre-commit
|
||||
printf '#!/bin/sh\nset -e\nscript/precommit\n' > "$hook"
|
||||
chmod +x "$hook"
|
||||
echo "pre-commit hook installed: runs script/precommit"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user