{
  "id": "charm",
  "name": "Charm",
  "homepage": "https://github.com/charmbracelet/charm",
  "description": "Charm is a set of tools that makes adding a backend to your terminal-based applications fun and easy.",
  "icon": "https://github.com/charmbracelet.png",
  "executables": [
    "charm"
  ],
  "dotfiles": {
    "paths": [],
    "exclude": [
      "[dataHome]/charm/*/kv/"
    ],
    "secret": [
      "[dataHome]/charm/*/charm_ed25519",
      "[dataHome]/charm/*/charm_rsa"
    ]
  },
  "commands": {
    "format": 1,
    "label": "Charm",
    "description": "Read and write the Charm key-value store. Run charm with no arguments for the TUI; accounts, keys, fs and crypt commands are left out.",
    "quality": "ai-draft",
    "base": "fig:charm",
    "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/charm.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "kv",
          "get"
        ],
        "label": "Get a value",
        "description": "Get a value for a key, optionally in a named database (key@db).",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/charm.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "key",
            "label": "Key",
            "description": "KEY or KEY@DB.",
            "type": "string",
            "position": 0,
            "min": 1,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "get",
            "label": "Get",
            "fields": [
              "key"
            ],
            "required": [
              "key"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "key"
            ]
          }
        ]
      },
      {
        "path": [
          "kv",
          "set"
        ],
        "label": "Set a value",
        "description": "Set a value for a key, optionally in a named database (key@db).",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/charm.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "key",
            "label": "Key",
            "description": "KEY or KEY@DB.",
            "type": "string",
            "position": 0,
            "min": 1,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "value",
            "label": "Value",
            "description": "Value to store.",
            "type": "string",
            "position": 1,
            "min": 1,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "set",
            "label": "Set",
            "fields": [
              "key",
              "value"
            ],
            "required": [
              "key",
              "value"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "key",
              "value"
            ]
          }
        ]
      },
      {
        "path": [
          "kv",
          "list"
        ],
        "label": "List pairs",
        "description": "List all key-value pairs, optionally for one database (@db).",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/charm.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "db",
            "label": "Database",
            "description": "Optional @DB to list.",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "list",
            "label": "List",
            "fields": [
              "db"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "db"
            ]
          }
        ]
      }
    ]
  }
}
