{
  "id": "env",
  "name": "env",
  "description": "Set environment variables and run a utility, or print the environment.",
  "executables": [
    "env"
  ],
  "commands": {
    "format": 1,
    "label": "Run with environment",
    "description": "Run a utility with a modified environment, or print the environment when no utility is given.",
    "quality": "ai-draft",
    "base": "fig:env",
    "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/env.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "ignore_env",
        "label": "Start with empty environment",
        "type": "boolean",
        "option": [
          "-i"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "unset",
        "label": "Unset variable",
        "type": "string",
        "option": [
          "-u"
        ],
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "nul",
        "label": "NUL-terminate output lines",
        "type": "boolean",
        "option": [
          "-0"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "verbose",
        "label": "Verbose",
        "type": "boolean",
        "option": [
          "-v"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "words",
        "label": "Variables, utility and arguments",
        "description": "NAME=value assignments first, then the utility to run and its arguments. Leave empty to print the environment.",
        "type": "string",
        "position": 0,
        "multiple": true,
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "run",
        "label": "Run with variables",
        "fields": [
          "words",
          "unset"
        ],
        "required": [
          "words"
        ]
      },
      {
        "id": "clean",
        "label": "Run in clean environment",
        "set": {
          "ignore_env": [
            true
          ]
        },
        "fields": [
          "ignore_env",
          "words"
        ],
        "required": [
          "words"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "words",
          "ignore_env",
          "unset"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "nul",
          "verbose"
        ]
      }
    ]
  }
}
