id = "cordova" name = "Apache Cordova" description = "Build native mobile apps from HTML, CSS and JavaScript." homepage = "https://cordova.apache.org" executables = ["cordova"] [commands] format = 1 label = "Cordova project" description = "Create, build and run Cordova apps." quality = "ai-draft" base = "fig:cordova" 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/cordova.ts" license = "MIT" [[commands.subcommand]] path = ["create"] label = "Create a project" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/cordova.ts" license = "MIT" [[commands.subcommand.field]] id = "path" label = "Directory" description = "Must not already exist." type = "path" position = 0 min = 1 path = { kind = "directory", role = "output", must_exist = false } sources = ["fig"] [[commands.subcommand.field]] id = "app_id" label = "Reverse-domain ID" type = "string" position = 1 sources = ["fig"] [[commands.subcommand.field]] id = "name" label = "App name" type = "string" position = 2 sources = ["fig"] [[commands.subcommand.field]] id = "template" label = "Template" description = "Local path, npm package or GitHub template." type = "string" option = ["--template"] sources = ["fig"] [[commands.subcommand.task]] id = "create" label = "Create" fields = ["path", "app_id", "name"] required = ["path"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["path", "app_id", "name"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["template"] [[commands.subcommand]] path = ["build"] label = "Build for a platform" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/cordova.ts" license = "MIT" [[commands.subcommand.field]] id = "platform" label = "Platforms" description = "Leave empty for all platforms." type = "string" position = 0 multiple = true suggestions = [{ value = "android", label = "Android" }, { value = "ios", label = "iOS" }, { value = "browser", label = "Browser" }] sources = ["fig"] [[commands.subcommand.field]] id = "release" label = "Release build" type = "boolean" option = ["--release"] sources = ["fig"] [[commands.subcommand.field]] id = "debug" label = "Debug build" type = "boolean" option = ["--debug"] sources = ["fig"] [[commands.subcommand.field]] id = "device" label = "Device" type = "boolean" option = ["--device"] sources = ["fig"] [[commands.subcommand.field]] id = "emulator" label = "Emulator" type = "boolean" option = ["--emulator"] sources = ["fig"] [[commands.subcommand.field]] id = "verbose" label = "Verbose" type = "boolean" option = ["--verbose", "-d"] sources = ["fig"] [[commands.subcommand.task]] id = "debug" label = "Debug" fields = ["platform", "debug", "verbose"] required = ["platform"] set = { debug = [true] } [[commands.subcommand.task]] id = "release" label = "Release" fields = ["platform", "release", "verbose"] required = ["platform"] set = { release = [true] } [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["platform", "debug", "release"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["device", "emulator", "verbose"] [[commands.subcommand]] path = ["run"] label = "Run on a device or emulator" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/cordova.ts" license = "MIT" [[commands.subcommand.field]] id = "platform" label = "Platforms" description = "Leave empty for all platforms." type = "string" position = 0 multiple = true suggestions = [{ value = "android", label = "Android" }, { value = "ios", label = "iOS" }, { value = "browser", label = "Browser" }] sources = ["fig"] [[commands.subcommand.field]] id = "release" label = "Release build" type = "boolean" option = ["--release"] sources = ["fig"] [[commands.subcommand.field]] id = "debug" label = "Debug build" type = "boolean" option = ["--debug"] sources = ["fig"] [[commands.subcommand.field]] id = "device" label = "Device" type = "boolean" option = ["--device"] sources = ["fig"] [[commands.subcommand.field]] id = "emulator" label = "Emulator" type = "boolean" option = ["--emulator"] sources = ["fig"] [[commands.subcommand.field]] id = "verbose" label = "Verbose" type = "boolean" option = ["--verbose", "-d"] sources = ["fig"] [[commands.subcommand.task]] id = "debug" label = "Debug" fields = ["platform", "debug", "verbose"] required = ["platform"] set = { debug = [true] } [[commands.subcommand.task]] id = "release" label = "Release" fields = ["platform", "release", "verbose"] required = ["platform"] set = { release = [true] } [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["platform", "debug", "release"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["device", "emulator", "verbose"]