id = "elm" name = "Elm" description = "The Elm language command-line tool for building, installing and publishing Elm code." homepage = "https://elm-lang.org" executables = ["elm"] [commands] format = 1 label = "Elm" description = "Compile Elm code with elm make. Other subcommands (init, repl, reactor, install, publish) are left out." quality = "ai-draft" base = "fig:elm" 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/elm.ts" license = "MIT" [[commands.subcommand]] path = ["make"] label = "Build Elm code" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/elm.ts" license = "MIT" [[commands.subcommand.field]] id = "sources" label = "Source files" type = "path" position = 0 multiple = true path = { kind = "file", role = "input" } sources = ["fig"] [[commands.subcommand.field]] id = "output" label = "Output file" description = "Where to write the compiled code, e.g. elm.js or index.html." type = "path" option = ["--output"] path = { kind = "file", role = "output" } effect = "overwrite" sources = ["fig"] [[commands.subcommand.field]] id = "debug" label = "Debug mode" type = "boolean" option = ["--debug"] sources = ["fig"] [[commands.subcommand.field]] id = "optimize" label = "Optimize (production)" type = "boolean" option = ["--optimize"] sources = ["fig"] [[commands.subcommand.field]] id = "docs" label = "Docs JSON file" type = "path" option = ["--docs"] path = { kind = "file", role = "output" } effect = "overwrite" sources = ["fig"] [[commands.subcommand.task]] id = "dev" label = "Debug build" set = { debug = [true] } fields = ["sources", "output", "debug"] required = ["sources"] [[commands.subcommand.task]] id = "prod" label = "Production build" set = { optimize = [true] } fields = ["sources", "output", "optimize"] required = ["sources"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["sources", "output", "debug", "optimize"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["docs"]