{
  "id": "direnv",
  "name": "direnv",
  "homepage": "https://direnv.net",
  "description": "An environment switcher for the shell, loading and unloading variables as you change directory.",
  "icon": "https://github.com/direnv.png",
  "executables": [
    "direnv"
  ],
  "platforms": [
    "macos",
    "linux"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/direnv/direnv.toml",
      "[configHome]/direnv/direnvrc",
      "[configHome]/direnv/lib/",
      "~/.direnvrc"
    ],
    "exclude": [
      "[xdgData]/direnv/allow/",
      "[configHome]/direnv/allow/"
    ],
    "secret": [],
    "side_effect": false,
    "machine_lines": [
      {
        "file": "[configHome]/direnv/direnv.toml",
        "match": {
          "key_path": [
            "whitelist.prefix",
            "whitelist.exact"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "direnv",
    "description": "Authorize or revoke .envrc files and run a command inside a directory environment. Other subcommands are left out.",
    "quality": "ai-draft",
    "base": "fig:direnv",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/direnv.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "allow"
        ],
        "label": "Allow .envrc",
        "description": "Grants direnv permission to load the given .envrc (default: the current directory).",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/direnv.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "path",
            "label": ".envrc or directory",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "any",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "allow",
            "label": "Allow",
            "fields": [
              "path"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "path"
            ]
          }
        ]
      },
      {
        "path": [
          "deny"
        ],
        "label": "Deny .envrc",
        "description": "Revokes authorization of the given .envrc.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/direnv.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "path",
            "label": ".envrc or directory",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "any",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "deny",
            "label": "Deny",
            "fields": [
              "path"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "path"
            ]
          }
        ]
      },
      {
        "path": [
          "exec"
        ],
        "label": "Run in environment",
        "description": "Runs a command after loading the first .envrc found in DIR.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/direnv.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "dir",
            "label": "Directory",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "command",
            "label": "Command and arguments",
            "type": "string",
            "position": 1,
            "multiple": true,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "exec",
            "label": "Exec in directory",
            "fields": [
              "dir",
              "command"
            ],
            "required": [
              "dir",
              "command"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "dir",
              "command"
            ]
          }
        ]
      }
    ]
  }
}
