{
  "id": "tsuru",
  "name": "tsuru client",
  "homepage": "https://tsuru.io",
  "description": "tsuru is a command line for application developers on tsuru.",
  "icon": "https://github.com/tsuru.png",
  "executables": [
    "tsuru"
  ],
  "dotfiles": {
    "paths": [
      "~/.tsuru/config.json",
      "~/.tsuru/target",
      "~/.tsuru/targets",
      "~/.tsuru_target",
      "~/.tsuru_targets"
    ],
    "exclude": [],
    "secret": [
      "~/.tsuru/token"
    ],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "tsuru apps",
    "description": "List apps, inspect them, read logs and restart. Deploys, env vars and clusters are left out.",
    "quality": "ai-draft",
    "base": "fig:tsuru",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/tsuru.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "app",
          "list"
        ],
        "label": "List apps",
        "description": "List applications with optional filters.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tsuru.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "names_only",
            "label": "Names only",
            "type": "boolean",
            "option": [
              "-q"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "team",
            "label": "Team",
            "type": "string",
            "option": [
              "-t",
              "--team"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "pool",
            "label": "Pool",
            "type": "string",
            "option": [
              "-o",
              "--pool"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "platform",
            "label": "Platform",
            "type": "string",
            "option": [
              "-p",
              "--platform"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "status",
            "label": "Unit status (comma separated)",
            "type": "string",
            "option": [
              "-s",
              "--status"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "list",
            "label": "List apps",
            "fields": [
              "names_only",
              "team"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "names_only",
              "team",
              "pool",
              "platform",
              "status"
            ]
          }
        ]
      },
      {
        "path": [
          "app",
          "info"
        ],
        "label": "App info",
        "description": "Show information about an app.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tsuru.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "app",
            "label": "App",
            "type": "string",
            "option": [
              "-a",
              "--app"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "info",
            "label": "App info",
            "fields": [
              "app"
            ],
            "required": [
              "app"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "app"
            ]
          }
        ]
      },
      {
        "path": [
          "app",
          "log"
        ],
        "label": "App logs",
        "description": "Show an app log.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tsuru.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "app",
            "label": "App",
            "type": "string",
            "option": [
              "-a",
              "--app"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "follow",
            "label": "Follow",
            "type": "boolean",
            "option": [
              "-f",
              "--follow"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "lines",
            "label": "Number of lines",
            "type": "integer",
            "option": [
              "-l",
              "--lines"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "source",
            "label": "Source",
            "type": "string",
            "option": [
              "-s",
              "--source"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "unit",
            "label": "Unit",
            "type": "string",
            "option": [
              "-u",
              "--unit"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "log",
            "label": "Follow logs",
            "fields": [
              "app",
              "follow"
            ],
            "required": [
              "app"
            ],
            "set": {
              "follow": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "app",
              "follow",
              "lines",
              "source",
              "unit"
            ]
          }
        ]
      },
      {
        "path": [
          "app",
          "restart"
        ],
        "label": "Restart app",
        "description": "Restart an app or one process.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tsuru.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "app",
            "label": "App",
            "type": "string",
            "option": [
              "-a",
              "--app"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "process",
            "label": "Process",
            "type": "string",
            "option": [
              "-p",
              "--process"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "restart",
            "label": "Restart",
            "fields": [
              "app",
              "process"
            ],
            "required": [
              "app"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "app",
              "process"
            ]
          }
        ]
      }
    ]
  }
}
