safe-chains 0.113.0

Auto-allow safe, read-only bash commands in agentic coding tools
Documentation
[[command]]
name = "codesign"
url = "https://ss64.com/mac/codesign.html"
level = "Inert"
bare = false
require_any = ["--display", "--verify", "-d", "-v"]
standalone = ["--deep", "--display", "--verify", "-R", "-d", "-v", "--help", "-h"]
valued = ["--verbose"]

[[command]]
name = "lipo"
url = "https://ss64.com/mac/lipo.html"
level = "Inert"
bare = false
require_any = ["-archs", "-detailed_info", "-info", "-verify_arch"]
standalone = ["-archs", "-detailed_info", "-info", "-verify_arch", "--help", "-h"]

[[command]]
name = "pkgutil"
url = "https://ss64.com/mac/pkgutil.html"
level = "Inert"
bare = false
require_any = [
    "--check-signature", "--export-plist",
    "--file-info", "--file-info-plist",
    "--files", "--group-pkgs", "--groups", "--groups-plist",
    "--packages", "--payload-files",
    "--pkg-groups", "--pkg-info", "--pkg-info-plist",
    "--pkgs", "--pkgs-plist",
]
standalone = [
    "--check-signature", "--export-plist",
    "--file-info", "--file-info-plist",
    "--files", "--group-pkgs", "--groups", "--groups-plist",
    "--packages", "--payload-files",
    "--pkg-groups", "--pkg-info", "--pkg-info-plist",
    "--pkgs", "--pkgs-plist",
    "--regexp",
    "--help", "-h",
]
valued = ["--volume"]

[[command]]
name = "spctl"
url = "https://ss64.com/mac/spctl.html"
level = "Inert"
bare = false
require_any = ["--assess", "-a"]
standalone = ["--assess", "--verbose", "-a", "-v", "--help", "-h"]
valued = ["--context", "--type", "-t"]

[[command]]
name = "swiftformat"
url = "https://github.com/nicklockwood/SwiftFormat"
level = "SafeRead"
bare = false
require_any = ["--dryrun", "--lint"]
standalone = [
    "--dryrun", "--lenient", "--lint", "--quiet", "--strict", "--verbose",
    "--help", "-h",
]
valued = ["--config", "--disable", "--enable", "--rules"]

[[command]]
name = "xcbeautify"
url = "https://github.com/cpisciotta/xcbeautify"
level = "Inert"
bare = true
standalone = ["--help", "--is-ci", "--quiet", "--quieter", "--version", "-V", "-h", "-q"]
valued = ["--renderer"]

[[command]]
name = "agvtool"
url = "https://developer.apple.com/library/archive/qa/qa1827/_index.html"

[[command.sub]]
name = "mvers"
standalone = ["--help", "-h"]

[[command.sub]]
name = "vers"
standalone = ["--help", "-h"]

[[command.sub]]
name = "what-marketing-version"
standalone = ["--help", "-h"]

[[command.sub]]
name = "what-version"
standalone = ["--help", "-h"]

[[command]]
name = "periphery"
url = "https://github.com/peripheryapp/periphery"
bare_flags = ["--help", "--version", "-V", "-h"]

[[command.sub]]
name = "scan"
level = "SafeRead"
standalone = [
    "--help", "--quiet", "--skip-build", "--strict", "--verbose",
    "-h",
]
valued = [
    "--config", "--format", "--index-store-path",
    "--project", "--schemes", "--targets",
]

[[command.sub]]
name = "version"
standalone = ["--help", "-h"]

[[command]]
name = "plutil"
url = "https://ss64.com/mac/plutil.html"
bare_flags = ["--help", "--version", "-V", "-h", "-help"]

[[command.sub]]
name = "-lint"
bare = false
standalone = ["--help", "-h", "-s"]

[[command.sub]]
name = "-p"
bare = false
standalone = ["--help", "-h"]

[[command.sub]]
name = "-type"
bare = false
standalone = ["--help", "-h"]

[[command]]
name = "pod"
url = "https://guides.cocoapods.org/terminal/commands.html"
bare_flags = ["--help", "--version", "-V", "-h"]

[[command.sub]]
name = "env"
standalone = ["--help", "-h"]

[[command.sub]]
name = "info"
bare = false
standalone = ["--help", "-h"]

[[command.sub]]
name = "list"
standalone = ["--help", "-h"]

[[command.sub]]
name = "search"
bare = false
standalone = ["--help", "--simple", "--stats", "--web", "-h"]

[[command.sub]]
name = "spec"
[[command.sub.sub]]
name = "cat"
bare = false
standalone = ["--help", "-h"]
valued = ["--version"]
[[command.sub.sub]]
name = "which"
bare = false
standalone = ["--help", "-h"]
valued = ["--version"]

[[command]]
name = "simctl"
url = "https://developer.apple.com/documentation/xcode/simctl"

[[command.sub]]
name = "list"
standalone = ["--help", "--json", "--verbose", "-h", "-j", "-v"]

[[command]]
name = "swiftlint"
url = "https://github.com/realm/SwiftLint"
bare_flags = ["--help", "--version", "-V", "-h"]

[[command.sub]]
name = "analyze"
level = "SafeRead"
standalone = ["--help", "--quiet", "--strict", "-h"]
valued = ["--compiler-log-path", "--config", "--path", "--reporter"]

[[command.sub]]
name = "lint"
level = "SafeRead"
standalone = ["--help", "--no-cache", "--quiet", "--strict", "-h"]
valued = ["--config", "--path", "--reporter"]

[[command.sub]]
name = "reporters"
standalone = ["--help", "-h"]

[[command.sub]]
name = "rules"
standalone = ["--disabled", "--enabled", "--help", "-h"]
valued = ["--config", "--reporter"]

[[command.sub]]
name = "version"
standalone = ["--help", "-h"]

[[command]]
name = "tuist"
url = "https://docs.tuist.dev/en/cli/"
bare_flags = ["--help", "--version", "-V", "-h"]

[[command.sub]]
name = "dump"
standalone = ["--help", "--json", "--verbose", "-h"]
valued = ["--path", "-p"]

[[command.sub]]
name = "graph"
standalone = ["--help", "--json", "--verbose", "-h"]
valued = ["--format", "--path", "-f", "-p"]

[[command.sub]]
name = "hash"
[[command.sub.sub]]
name = "cache"
standalone = ["--help", "--json", "--verbose", "-h"]
valued = ["--path", "-p"]
[[command.sub.sub]]
name = "selective-testing"
standalone = ["--help", "--json", "--verbose", "-h"]
valued = ["--path", "-p"]

[[command.sub]]
name = "inspect"
[[command.sub.sub]]
name = "build"
standalone = ["--help", "--json", "--verbose", "-h"]
valued = ["--path", "-p"]
[[command.sub.sub]]
name = "bundle"
standalone = ["--help", "--json", "--verbose", "-h"]
valued = ["--path", "-p"]
[[command.sub.sub]]
name = "dependencies"
standalone = ["--help", "--json", "--verbose", "-h"]
valued = ["--path", "-p"]
[[command.sub.sub]]
name = "implicit-imports"
standalone = ["--help", "--json", "--verbose", "-h"]
valued = ["--path", "-p"]
[[command.sub.sub]]
name = "redundant-imports"
standalone = ["--help", "--json", "--verbose", "-h"]
valued = ["--path", "-p"]
[[command.sub.sub]]
name = "test"
standalone = ["--help", "--json", "--verbose", "-h"]
valued = ["--path", "-p"]

[[command.sub]]
name = "migration"
[[command.sub.sub]]
name = "check-empty-settings"
standalone = ["--help", "-h"]
valued = ["--path", "-p"]
[[command.sub.sub]]
name = "list-targets"
standalone = ["--help", "-h"]
valued = ["--path", "-p"]

[[command.sub]]
name = "scaffold"
[[command.sub.sub]]
name = "list"
standalone = ["--help", "--json", "-h"]
valued = ["--path", "-p"]

[[command.sub]]
name = "version"
standalone = ["--help", "-h"]

[[command]]
name = "xcode-select"
url = "https://ss64.com/mac/xcode-select.html"
bare_flags = ["--help", "--print-path", "--version", "-V", "-h", "-p", "-v"]

[[command]]
name = "xcodebuild"
url = "https://developer.apple.com/documentation/xcode/xcodebuild"
bare_flags = ["--help", "--version", "-V", "-h"]

[[command.sub]]
name = "-list"
standalone = ["--help", "-h", "-json"]
valued = ["-project", "-workspace"]

[[command.sub]]
name = "-showBuildSettings"
standalone = ["--help", "-h", "-json"]
valued = [
    "-configuration", "-destination", "-project",
    "-scheme", "-sdk", "-target", "-workspace",
]

[[command.sub]]
name = "-showdestinations"
standalone = ["--help", "-h", "-json"]
valued = [
    "-configuration", "-destination", "-project",
    "-scheme", "-sdk", "-target", "-workspace",
]

[[command.sub]]
name = "-showsdks"
standalone = ["--help", "-h", "-json"]
valued = [
    "-configuration", "-destination", "-project",
    "-scheme", "-sdk", "-target", "-workspace",
]

[[command.sub]]
name = "-version"
standalone = ["--help", "-h"]

[[command]]
name = "xcodegen"
url = "https://github.com/yonaskolb/XcodeGen"
bare_flags = ["--help", "--version", "-V", "-h"]

[[command.sub]]
name = "dump"
standalone = ["--help", "--no-env", "--quiet", "-h", "-n", "-q"]
valued = ["--project-root", "--spec", "--type", "-r", "-s", "-t"]

[[command.sub]]
name = "version"
standalone = ["--help", "-h"]

[[command]]
name = "xcrun"
url = "https://ss64.com/mac/xcrun.html"
bare_flags = []
[command.wrapper]
standalone = ["-l", "-n", "-v", "--log", "--no-cache", "--verbose"]
valued = ["--sdk", "--toolchain"]

[[command.sub]]
name = "--find"
bare = false
positional_style = true

[[command.sub]]
name = "--show-sdk-build-version"
positional_style = true

[[command.sub]]
name = "--show-sdk-path"
positional_style = true

[[command.sub]]
name = "--show-sdk-platform-path"
positional_style = true

[[command.sub]]
name = "--show-sdk-platform-version"
positional_style = true

[[command.sub]]
name = "--show-sdk-version"
positional_style = true

[[command.sub]]
name = "--show-toolchain-path"
positional_style = true

[[command.sub]]
name = "simctl"
[[command.sub.sub]]
name = "list"
positional_style = true

[[command.sub]]
name = "stapler"
[[command.sub.sub]]
name = "validate"
positional_style = true

[[command.sub]]
name = "notarytool"
[[command.sub.sub]]
name = "history"
positional_style = true
[[command.sub.sub]]
name = "info"
positional_style = true
[[command.sub.sub]]
name = "log"
positional_style = true