id = "surreal" name = "SurrealDB" description = "Multi-model database; the surreal CLI starts the server and imports, exports and queries data." executables = ["surreal"] [commands] format = 1 label = "SurrealDB" description = "Export or import a database. Server start, backup and REPL are not in this form." quality = "ai-draft" base = "fig:surreal" 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/surreal.ts" license = "MIT" [[commands.subcommand]] path = ["export"] label = "Export database as SurrealQL" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/surreal.ts" license = "MIT" [[commands.subcommand.field]] id = "file" label = "SurrealQL file" type = "path" path = { kind = "file", role = "output" } position = 0 min = 1 effect = "overwrite" sources = ["fig"] [[commands.subcommand.field]] id = "conn" label = "Server URL" type = "url" option = ["--conn", "-c"] sources = ["fig"] [[commands.subcommand.field]] id = "user" label = "Username" type = "string" option = ["--user", "-u"] sources = ["fig"] [[commands.subcommand.field]] id = "pass" label = "Password" description = "Passed on the command line, so visible in shell history." type = "string" option = ["--pass", "-p"] sources = ["fig"] [[commands.subcommand.field]] id = "ns" label = "Namespace" type = "string" option = ["--ns"] sources = ["fig"] [[commands.subcommand.field]] id = "db" label = "Database" type = "string" option = ["--db"] sources = ["fig"] [[commands.subcommand.task]] id = "run" label = "export" fields = ["file", "conn", "user", "pass", "ns", "db"] required = ["file", "ns", "db"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["file", "conn", "ns", "db", "user", "pass"] [[commands.subcommand]] path = ["import"] label = "Import SurrealQL script" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/surreal.ts" license = "MIT" [[commands.subcommand.field]] id = "file" label = "SurrealQL file" type = "path" path = { kind = "file", role = "input" } position = 0 min = 1 sources = ["fig"] [[commands.subcommand.field]] id = "conn" label = "Server URL" type = "url" option = ["--conn", "-c"] sources = ["fig"] [[commands.subcommand.field]] id = "user" label = "Username" type = "string" option = ["--user", "-u"] sources = ["fig"] [[commands.subcommand.field]] id = "pass" label = "Password" description = "Passed on the command line, so visible in shell history." type = "string" option = ["--pass", "-p"] sources = ["fig"] [[commands.subcommand.field]] id = "ns" label = "Namespace" type = "string" option = ["--ns"] sources = ["fig"] [[commands.subcommand.field]] id = "db" label = "Database" type = "string" option = ["--db"] sources = ["fig"] [[commands.subcommand.task]] id = "run" label = "import" fields = ["file", "conn", "user", "pass", "ns", "db"] required = ["file", "ns", "db"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["file", "conn", "ns", "db", "user", "pass"]