{
  "id": "cql",
  "name": "CovenantSQL",
  "homepage": "https://developers.covenantsql.io/docs/en/cql_intro",
  "description": "A command line toolset for terminal users to access and manage user accounts, wallet balances, and databases.",
  "executables": [
    "cql"
  ],
  "dotfiles": {
    "paths": [
      "~/.cql/config.yaml"
    ],
    "exclude": [],
    "secret": [
      "~/.cql/private.key"
    ]
  },
  "commands": {
    "format": 1,
    "label": "CovenantSQL client",
    "description": "Open an interactive SQL console on a CovenantSQL database or check a wallet balance. Account, database creation and other subcommands are not covered.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": false
    },
    "subcommand": [
      {
        "path": [
          "console"
        ],
        "label": "SQL console",
        "source": [
          {
            "id": "docs",
            "kind": "manual",
            "url": "https://developers.covenantsql.io/docs/en/cql_intro",
            "revision": "0.8.0",
            "evidence": "-config string\n      Config file for covenantsql (Usually no need to set, default is enough.) (default \"~/.cql/config.yaml\")\n$ cql console -dsn covenantsql://address\n"
          }
        ],
        "field": [
          {
            "id": "dsn",
            "label": "Database DSN",
            "description": "covenantsql://<database id>",
            "type": "string",
            "option": [
              "-dsn"
            ],
            "sources": [
              "docs"
            ]
          },
          {
            "id": "config",
            "label": "Config file",
            "description": "Defaults to ~/.cql/config.yaml.",
            "type": "path",
            "option": [
              "-config"
            ],
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "docs"
            ]
          }
        ],
        "task": [
          {
            "id": "console",
            "label": "Open console",
            "fields": [
              "dsn",
              "config"
            ],
            "required": [
              "dsn"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "dsn",
              "config"
            ]
          }
        ]
      }
    ]
  }
}
