Skip to content

Commit 66e810b

Browse files
committed
audit_gen.sh -> generate.sh
1 parent 3bda3b5 commit 66e810b

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

coderd/audit/audit_gen.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

coderd/audit/generate.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
# This script facilitates code generation for auditing types. It outputs code
4+
# that can be copied and pasted into the audit.AuditableResources table. By
5+
# default, every field is ignored. It is your responsiblity to go through each field and document why each field should or should not be audited.
6+
#
7+
# Usage:
8+
# ./generate.sh <database type> <database type> ...
9+
10+
11+
set -euo pipefail
12+
13+
cd "$(dirname "$0")" && cd "$(git rev-parse --show-toplevel)"
14+
go run ./scripts/auditgen ./coderd/database "$@"

0 commit comments

Comments
 (0)