id = "electron" name = "Electron" homepage = "https://www.electronjs.org" description = "Build cross-platform desktop apps with JavaScript, HTML and CSS." executables = ["electron"] [commands] format = 1 label = "Run an Electron app" description = "Launch an Electron app from a path, optionally with a REPL or a preloaded module." quality = "ai-draft" base = "fig:electron" 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/electron.ts" license = "MIT" [[commands.field]] id = "app" label = "App path" description = "Path to an Electron app (folder or script)." type = "path" path = { kind = "any", role = "input", must_exist = true } position = 0 sources = ["fig"] [[commands.field]] id = "interactive" label = "Open main-process REPL" type = "boolean" option = ["--interactive", "-i"] sources = ["fig"] [[commands.field]] id = "require" label = "Preload module" type = "path" path = { kind = "file", role = "input" } option = ["--require", "-r"] sources = ["fig"] [[commands.field]] id = "abi" label = "Print Node ABI version" type = "boolean" option = ["--abi", "-a"] sources = ["fig"] [[commands.task]] id = "run" label = "Run app" fields = ["app"] required = ["app"] [[commands.group]] id = "basic" label = "Basic" fields = ["app", "interactive"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["require", "abi"]