audit

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2026 License: MIT Imports: 6 Imported by: 0

README

audit example

The minimum useful cli-guard program. Wires audit.NewWriter with verb.Wrap so every invocation of the hello subcommand lands one JSONL row in $TMPDIR/cli-guard-demo.jsonl.

$ go run ./examples/audit hello world
hello, world
$ cat $TMPDIR/cli-guard-demo.jsonl | tail -1 | jq .verb
"hello"

Documentation

Overview

Command demo is a tiny urfave/cli v3 application that exercises the cli-guard framework primitives. Run with:

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL