{
  "id": "vela",
  "name": "Vela CLI",
  "homepage": "https://go-vela.github.io/docs/",
  "description": "CLI for Vela, Target's official Pipeline Automation Framework.",
  "icon": "https://go-vela.github.io/docs/img/vela.svg",
  "executables": [
    "vela"
  ],
  "dotfiles": {
    "paths": [
      "~/.vela/config.yml"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false,
    "secret_paths": [
      {
        "file": "~/.vela/config.yml",
        "match": {
          "key_path": [
            "api.token",
            "api.access_token",
            "api.refresh_token",
            "compiler.github.token",
            "compiler.github_token"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "KubeVela",
    "description": "KubeVela CLI. Forms cover up and init.",
    "quality": "ai-draft",
    "base": "fig:vela",
    "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/vela.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "up"
        ],
        "label": "Deploy application",
        "description": "Deploy one application from a file or the current definition.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/vela.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "app",
            "label": "Application",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "file",
            "label": "Appfile or URL",
            "type": "path",
            "option": [
              "--file",
              "-f"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "env",
            "label": "Environment",
            "type": "string",
            "option": [
              "--env",
              "-e"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "namespace",
            "label": "Namespace",
            "type": "string",
            "option": [
              "--namespace",
              "-n"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "publish_version",
            "label": "Publish version",
            "type": "string",
            "option": [
              "--publish-version",
              "-v"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "revision",
            "label": "Revision",
            "type": "string",
            "option": [
              "--revision",
              "-r"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "up",
            "label": "Deploy from file",
            "fields": [
              "file",
              "env",
              "namespace"
            ],
            "required": [
              "file"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "app",
              "file",
              "env",
              "namespace"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "publish_version",
              "revision"
            ]
          }
        ]
      },
      {
        "path": [
          "init"
        ],
        "label": "Scaffold application",
        "description": "Create a vela application scaffold.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/vela.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "env",
            "label": "Environment",
            "type": "string",
            "option": [
              "--env",
              "-e"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "namespace",
            "label": "Namespace",
            "type": "string",
            "option": [
              "--namespace",
              "-n"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "render_only",
            "label": "Render only",
            "type": "boolean",
            "option": [
              "--render-only"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "init",
            "label": "Scaffold",
            "set": {
              "render_only": [
                true
              ]
            },
            "fields": [
              "env",
              "namespace",
              "render_only"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "env",
              "namespace",
              "render_only"
            ]
          }
        ]
      }
    ]
  }
}
