id = "python3" name = "Python" description = "The Python interpreter: run a script, a module or a one-line command." homepage = "https://www.python.org" executables = ["python3"] [commands] format = 1 label = "Run Python" description = "Run a script, a module (-m) or a command string (-c). Choose one of script, module or command." quality = "ai-draft" base = "fig:python3" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = true } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/python3.ts" license = "MIT" [[commands.field]] id = "script" label = "Script" type = "path" position = 0 path = { kind = "file", role = "input" } sources = ["fig"] [[commands.field]] id = "module" label = "Module (-m)" type = "string" option = ["-m"] suggestions = [{ value = "http.server", label = "http.server" }] sources = ["fig"] [[commands.field]] id = "command" label = "Command (-c)" type = "string" option = ["-c"] sources = ["fig"] [[commands.field]] id = "interactive" label = "Interactive after run" type = "boolean" option = ["-i"] sources = ["fig"] [[commands.field]] id = "unbuffered" label = "Unbuffered output" type = "boolean" option = ["-u"] sources = ["fig"] [[commands.field]] id = "isolated" label = "Isolated mode" type = "boolean" option = ["-I"] sources = ["fig"] [[commands.field]] id = "optimize" label = "Remove asserts" type = "boolean" option = ["-O"] sources = ["fig"] [[commands.field]] id = "warnings" label = "Warning control" type = "string" option = ["-W"] sources = ["fig"] [[commands.task]] id = "script" label = "Run a script" fields = ["script", "unbuffered", "interactive"] required = ["script"] [[commands.task]] id = "module" label = "Run a module" fields = ["module", "unbuffered"] required = ["module"] [[commands.task]] id = "command" label = "Run a command" fields = ["command"] required = ["command"] [[commands.group]] id = "basic" label = "Basic" fields = ["script", "module", "command", "interactive"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["unbuffered", "isolated", "optimize", "warnings"]