{
  "id": "sysctl",
  "name": "sysctl",
  "description": "Get or set kernel state.",
  "executables": [
    "sysctl"
  ],
  "commands": {
    "format": 1,
    "label": "Read kernel state",
    "description": "Read kernel variables or list all of them. Setting values and -e/-b/-x output modes are not in this form.",
    "quality": "ai-draft",
    "base": "fig:sysctl",
    "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/sysctl.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "all",
        "label": "List all variables",
        "type": "boolean",
        "option": [
          "-a"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "names_only",
        "label": "Names only",
        "type": "boolean",
        "option": [
          "-N"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "values_only",
        "label": "Values only",
        "type": "boolean",
        "option": [
          "-n"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "describe",
        "label": "Print description",
        "type": "boolean",
        "option": [
          "-d"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "human",
        "label": "Human-readable",
        "type": "boolean",
        "option": [
          "-h"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "ignore_unknown",
        "label": "Ignore unknown OIDs",
        "type": "boolean",
        "option": [
          "-i"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "quiet",
        "label": "Suppress warnings",
        "type": "boolean",
        "option": [
          "-q"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "variables",
        "label": "Variable names",
        "description": "For example hw.ncpu or kern.osversion.",
        "type": "string",
        "position": 0,
        "multiple": true,
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "read",
        "label": "Read variables",
        "fields": [
          "variables",
          "values_only",
          "describe",
          "human"
        ],
        "required": [
          "variables"
        ]
      },
      {
        "id": "list",
        "label": "List all",
        "set": {
          "all": [
            true
          ]
        },
        "lock": [
          "all"
        ],
        "fields": [
          "all",
          "names_only",
          "values_only",
          "describe"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "variables",
          "all",
          "names_only",
          "values_only"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "describe",
          "human",
          "ignore_unknown",
          "quiet"
        ]
      }
    ]
  }
}
