id = "wasm-bindgen" name = "wasm-bindgen" description = "Generate bindings between WebAssembly and JavaScript." executables = ["wasm-bindgen"] [commands] format = 1 label = "Generate JS bindings" description = "Process a compiled .wasm file." quality = "ai-draft" base = "fig:wasm-bindgen" 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/wasm-bindgen.ts" license = "MIT" [[commands.field]] id = "input" label = "Input .wasm file" type = "path" position = 0 path = { kind = "file", role = "input" } sources = ["fig"] [[commands.field]] id = "out_dir" label = "Output directory" type = "path" option = ["--out-dir"] path = { kind = "directory", role = "output" } sources = ["fig"] [[commands.field]] id = "out_name" label = "Output name" type = "string" option = ["--out-name"] sources = ["fig"] [[commands.field]] id = "target" label = "Target" type = "string" option = ["--target"] suggestions = [{ value = "web", label = "web" }, { value = "bundler", label = "bundler" }, { value = "nodejs", label = "nodejs" }, { value = "no-modules", label = "no-modules" }, { value = "deno", label = "deno" }] sources = ["fig"] [[commands.field]] id = "typescript" label = "Emit TypeScript definitions" type = "boolean" option = ["--typescript"] sources = ["fig"] [[commands.field]] id = "no_typescript" label = "No .d.ts" type = "boolean" option = ["--no-typescript"] sources = ["fig"] [[commands.field]] id = "debug" label = "Debug checks" type = "boolean" option = ["--debug"] sources = ["fig"] [[commands.field]] id = "keep_debug" label = "Keep debug sections" type = "boolean" option = ["--keep-debug"] sources = ["fig"] [[commands.task]] id = "bindgen" label = "Generate" fields = ["input", "out_dir", "out_name", "target", "typescript", "no_typescript", "debug", "keep_debug"] required = ["input"] [[commands.group]] id = "basic" label = "Basic" fields = ["input", "out_dir", "out_name", "target", "typescript", "no_typescript", "debug", "keep_debug"]