{
  "id": "arch",
  "name": "arch",
  "description": "Print the machine architecture or run a program under a selected architecture.",
  "executables": [
    "arch"
  ],
  "platforms": [
    "macos"
  ],
  "commands": {
    "format": 1,
    "label": "Run under architecture",
    "description": "Run a program with a native architecture flag. The -arch option and per-architecture shortcuts are left out.",
    "quality": "ai-draft",
    "base": "fig:arch",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/arch.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "arm64",
        "label": "Run as arm64",
        "type": "boolean",
        "option": [
          "-arm64"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "x86_64",
        "label": "Run as x86_64",
        "type": "boolean",
        "option": [
          "-x86_64"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "clear_env",
        "label": "Clear environment",
        "type": "boolean",
        "option": [
          "-c"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "set_env",
        "label": "Set variable (NAME=value)",
        "type": "string",
        "option": [
          "-e"
        ],
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "unset_env",
        "label": "Delete variable",
        "type": "string",
        "option": [
          "-d"
        ],
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "program",
        "label": "Program and arguments",
        "type": "string",
        "position": 0,
        "multiple": true,
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "rosetta",
        "label": "Run under Rosetta (x86_64)",
        "fields": [
          "x86_64",
          "program"
        ],
        "required": [
          "program"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "program",
          "arm64",
          "x86_64",
          "clear_env",
          "set_env",
          "unset_env"
        ]
      }
    ]
  }
}
