mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-20 00:00:13 -06:00
Adds a whitespace linter to the pre-commit hook to ensure consistent formatting. It also enables linting of other SQL files such as for SQLc queries.
17 lines
364 B
Bash
17 lines
364 B
Bash
#!/bin/bash
|
|
# This scripts generates local encryption keys for development.
|
|
|
|
set -eux
|
|
|
|
ENCRYPTION_KEYS_DIR=./encryption-keys
|
|
|
|
# Read CERTS_DIR from args if exists
|
|
if [ -n "$1" ]; then
|
|
ENCRYPTION_KEYS_DIR=$1
|
|
fi
|
|
|
|
mkdir -p $ENCRYPTION_KEYS_DIR
|
|
|
|
# Generate a master encryption key
|
|
go run ./cmd/hatchet-admin keyset create-local-keys --key-dir $ENCRYPTION_KEYS_DIR
|