autocomplete set brew { [
	{
		"CacheTTL": 31536000, # 1 year
        "Flags": [
            # Built-in commands
            "--cache", "--env", "--version", "cleanup", "deps", "fetch", "home", "leaves", "log", "options", "postinstall", "search", "tap-info", "unlink", "update-report", "upgrade", "--caskroom", "--prefix", "analytics", "commands", "desc", "gist-logs", "info", "link", "migrate", "outdated", "readall", "shellenv", "tap", "unpin", "update-reset", "uses", "--cellar", "--repository", "cask", "config", "doctor", "help", "install", "list", "missing", "pin", "reinstall", "switch", "uninstall", "untap", "update", "vendor-install",
            
            # Built-in developer commands
            "audit", "bump-revision", "create", "extract", "linkage", "pr-automerge", "prof", "sh", "test", "update-license-data", "bottle", "bump", "dispatch-build-bottle", "formula", "livecheck", "pr-publish", "pull", "sponsors", "tests", "update-python-resources", "bump-cask-pr", "cat", "diy", "install-bundler-gems", "man", "pr-pull", "release-notes", "style", "typecheck", "update-test", "bump-formula-pr", "command", "edit", "irb", "mirror", "pr-upload", "ruby", "tap-new", "unpack", "vendor-gems",
            
            # External commands
            "aspell-dictionaries", "postgresql-upgrade-database"
        ],
        "FlagValues": {
            "cask": [{
                "Flags": [
                    # Cask commands
                    "--cache", "_help", "_stanza", "audit", "cat", "create", "doctor", "edit", "fetch", "help", "home", "info", "install", "list", "outdated", "reinstall", "style", "uninstall", "upgrade", "zap",

                    # External cask commands
                    "ci"
                ]
            }]
        }
	},
    {
        "DynamicDesc": ({
            cast: json
            config: set proc strict-arrays false
            brew help @{ $ARGS->@[1..] } -> tabulate: --map --split-comma --column-wraps
        }),
        "ListView": true
    }
] }
