{
  "id": "snaplet",
  "name": "Snaplet",
  "description": "Create and share PostgreSQL snapshots with data transformation.",
  "homepage": "https://docs.snaplet.dev",
  "executables": [
    "snaplet"
  ],
  "commands": {
    "format": 1,
    "label": "Snaplet",
    "description": "Capture and restore PostgreSQL snapshots.",
    "quality": "ai-draft",
    "base": "fig:snaplet",
    "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/snaplet.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "snapshot",
          "capture"
        ],
        "label": "Capture snapshot",
        "description": "Capture a new snapshot.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/snaplet.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "dest",
            "label": "Destination path",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "directory",
              "role": "output"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "message",
            "label": "Message",
            "type": "string",
            "option": [
              "--message",
              "-m"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "tags",
            "label": "Tags",
            "type": "string",
            "option": [
              "--tags"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "transform",
            "label": "Transform mode",
            "type": "string",
            "option": [
              "--transform-mode",
              "-t"
            ],
            "suggestions": [
              {
                "value": "strict",
                "label": "strict"
              },
              {
                "value": "unsafe",
                "label": "unsafe"
              },
              {
                "value": "auto",
                "label": "auto"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "env",
            "label": "Environment",
            "type": "string",
            "option": [
              "--environment",
              "--env"
            ],
            "suggestions": [
              {
                "value": "cloud",
                "label": "cloud"
              },
              {
                "value": "local",
                "label": "local"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "subset",
            "label": "Subset config",
            "type": "path",
            "option": [
              "--subset-path",
              "--subset"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "capture",
            "label": "Capture",
            "fields": [
              "message",
              "tags",
              "env"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "dest",
              "message",
              "tags",
              "transform",
              "env",
              "subset"
            ]
          }
        ]
      },
      {
        "path": [
          "snapshot",
          "restore"
        ],
        "label": "Restore snapshot",
        "description": "Restore a snapshot into the current database.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/snaplet.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "name",
            "label": "Snapshot name",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "latest",
            "label": "Latest snapshot",
            "type": "boolean",
            "option": [
              "--latest"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "yes",
            "label": "Skip confirmation",
            "type": "boolean",
            "option": [
              "--yes",
              "-y"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "schema_only",
            "label": "Schema only",
            "type": "boolean",
            "option": [
              "--schema-only"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "data_only",
            "label": "Data only",
            "type": "boolean",
            "option": [
              "--data-only"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "tags",
            "label": "Filter by tags",
            "type": "string",
            "option": [
              "--tags"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "restore",
            "label": "Restore",
            "fields": [
              "name",
              "latest",
              "schema_only",
              "data_only"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "name",
              "latest",
              "schema_only",
              "data_only",
              "tags",
              "yes"
            ]
          }
        ]
      }
    ]
  }
}
