Option C Tools
Loading...
Searching...
No Matches
audit.py File Reference

Go to the source code of this file.

Classes

class  oct.git.audit.AuditRecord
class  oct.git.audit.AuditLogger

Namespaces

namespace  oct
namespace  oct.git
namespace  oct.git.audit

Functions

str oct.git.audit._utc_now_iso ()
list[str] oct.git.audit._redact_args (list[str]|tuple[str,...]|None argv)
Callable[[Callable[..., Any]], Callable[..., Any]] oct.git.audit.audited (str cmd_name)
Path oct.git.audit._resolve_project_root_from_ctx (Any ctx)

Variables

int oct.git.audit.AUDIT_MAX_FILES = 20
int oct.git.audit.AUDIT_MAX_SIZE_BYTES = 5 * 1024 * 1024
str oct.git.audit._AUDIT_TS_FORMAT = "%Y%m%d-%H%M%S"
str oct.git.audit._AUDIT_FILENAME_PREFIX = "git-audit-"
str oct.git.audit._AUDIT_FILENAME_SUFFIX = ".jsonl"
str oct.git.audit._AUDIT_GLOB = f"{_AUDIT_FILENAME_PREFIX}*{_AUDIT_FILENAME_SUFFIX}"
str oct.git.audit._AUDIT_SUBDIR = "logs"