scope

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: 4 Imported by: 0

README

scope example

scope.Resolve maps --commit-scope=auto to a git toplevel so every audit row binds to a reconstructable commit. Run from inside a checkout vs outside one to see the two paths.

$ cd /path/to/some/repo && go run /path/to/cli-guard/examples/scope where
scope: /path/to/some/repo
$ cd /tmp && go run /path/to/cli-guard/examples/scope where
error: scope: cwd is not inside a git repo

Documentation

Overview

Command scope demonstrates --commit-scope resolution.

Jump to

Keyboard shortcuts

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