feat: Add support for per-project sandbox overlays (#294)

* feat: Add support for per-project sandbox overlays

* chore: Maintain consistency with TUI experience

* fix: Code review fixes
This commit is contained in:
Abhisek Datta
2026-05-26 21:06:57 +05:30
committed by GitHub
parent 321896996f
commit b03e82e3f2
25 changed files with 1837 additions and 1 deletions
+10
View File
@@ -150,6 +150,16 @@ func RenderSandboxViolation(out io.Writer, rec *pmgsandbox.ViolationCacheRecord)
if _, err := fmt.Fprintln(out); err != nil {
return err
}
// `pmg sandbox allow` refuses sensitive targets without --force, so
// do not suggest a command that would immediately fail.
if !pmgsandbox.IsSensitiveProjectTarget(exp.Override.Target) {
if _, err := fmt.Fprintln(out, Colors.Dim("Remember for this project: pmg sandbox allow --last --all")); err != nil {
return err
}
if _, err := fmt.Fprintln(out); err != nil {
return err
}
}
}
if exp.Primary != nil {