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