mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
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:
@@ -35,6 +35,13 @@ func parseSandboxAllowOverrides(raw []string) ([]SandboxAllowOverride, error) {
|
||||
return overrides, nil
|
||||
}
|
||||
|
||||
// ParseSingleOverride is the exported entry point for callers outside this
|
||||
// package (e.g. cmd handlers persisting overlay entries). It mirrors the
|
||||
// validation used for --sandbox-allow flag values.
|
||||
func ParseSingleOverride(raw string) (SandboxAllowOverride, error) {
|
||||
return parseSingleOverride(raw)
|
||||
}
|
||||
|
||||
// parseSingleOverride parses and validates a single "type=value" string.
|
||||
func parseSingleOverride(raw string) (SandboxAllowOverride, error) {
|
||||
// Split on first '=' only to handle values containing '='
|
||||
|
||||
Reference in New Issue
Block a user