{
  "id": "dtm",
  "name": "DevStream",
  "homepage": "https://docs.devstream.io",
  "description": "DevStream (dtm) is an open-source DevOps toolchain manager.",
  "executables": [
    "dtm"
  ],
  "commands": {
    "format": 1,
    "label": "DevStream",
    "description": "Download plugins and apply a DevStream configuration.",
    "quality": "ai-draft",
    "base": "fig:dtm",
    "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/dtm.ts",
        "license": "MIT"
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": []
      }
    ],
    "subcommand": [
      {
        "path": [
          "init"
        ],
        "label": "Download plugins",
        "description": "Download the plugins needed by a DevStream config file.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/dtm.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "config_file",
            "label": "Config file",
            "type": "path",
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "option": [
              "--config-file",
              "-f"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "plugin_dir",
            "label": "Plugin directory",
            "type": "path",
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "option": [
              "--plugin-dir",
              "-d"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "all",
            "label": "Download all plugins",
            "type": "boolean",
            "option": [
              "--all",
              "-a"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "download_only",
            "label": "Download only",
            "type": "boolean",
            "option": [
              "--download-only"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "init",
            "label": "Init from config",
            "fields": [
              "config_file"
            ],
            "required": [
              "config_file"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "config_file",
              "all",
              "download_only",
              "plugin_dir"
            ]
          }
        ]
      },
      {
        "path": [
          "apply"
        ],
        "label": "Apply configuration",
        "description": "Create or update DevOps tools from a config file.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/dtm.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "config_file",
            "label": "Config file",
            "type": "path",
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "option": [
              "--config-file",
              "-f"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "plugin_dir",
            "label": "Plugin directory",
            "type": "path",
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "option": [
              "--plugin-dir",
              "-d"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "yes",
            "label": "Apply without confirmation",
            "type": "boolean",
            "option": [
              "--yes",
              "-y"
            ],
            "effect": "exec",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "apply",
            "label": "Apply config",
            "fields": [
              "config_file"
            ],
            "required": [
              "config_file"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "config_file",
              "plugin_dir",
              "yes"
            ]
          }
        ]
      }
    ]
  }
}
