Files
iris-context/commands/js/cordova.go
T
VERSE 2ef3c90819 feat(commands): more commands (#30)
- I wrote a scripts to copy and generate all commands missing in iris
from fig repo: https://github.com/withfig/autocomplete
- Add a new script to generate commands docs about which commands
currently are inside commands folder
377d4aac663590e504fe39a92eb4dac4cbd333b2
- Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
2026-07-04 22:08:36 +07:00

59 lines
3.4 KiB
Go

package js
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "cordova",
Description: "Print out the version of your cordova-cli install",
Subcommands: []core.Subcommand{
{Name: "create", Description: "Create a project"},
{Name: "help", Description: "Get help for a command"},
{Name: "telemetry", Description: "Turn telemetry collection on or off"},
{Name: "on", Description: "Turn telemetry collection on"},
{Name: "off", Description: "Turn telemetry collection off"},
{Name: "config", Description: "Set, get, delete, edit, and list global cordova options"},
{Name: "ls", Description: "Lists contents of config file"},
{Name: "edit", Description: "Opens the config file in an editor"},
{Name: "get", Description: "Echo the config value to stdout"},
{Name: "delete", Description: "Deletes the key from all configuration files"},
{Name: "info", Description: "Generate project information"},
{Name: "requirements", Description: "Checks and print out all the installation requirements for platforms specified"},
{Name: "platform", Description: "Platform name(s) to build. If not specified, all platforms are built"},
{Name: "add", Description: "Add specified platforms"},
{Name: "remove", Description: "Remove specified platforms"},
{Name: "update", Description: "Update specified platforms"},
{Name: "list", Description: "List all installed and available platforms"},
{Name: "plugin", Description: "Manage project plugins"},
{Name: "prepare", Description: "Copy files into platform(s) for building"},
{Name: "compile", Description: "Compile project for platform(s)"},
{Name: "build", Description: "Build project for platform(s) (prepare + compile)"},
{Name: "clean", Description: "Cleanup project from build artifacts"},
{Name: "run", Description: "Run project (including prepare && compile)"},
{Name: "serve", Description: "Run project with a local webserver (including prepare)"},
{Name: "port", Description: "Port to use for local web server"},
},
Options: []core.Option{
{Name: "-d", Description: "Print out the version of your cordova-cli install"},
{Name: "--no-update-notifier", Description: "Will disable updates check"},
{Name: "--nohooks", Description: "Suppress executing hooks (taking RegExp hook patterns as parameters)"},
{Name: "--no-telemetry", Description: "Disable telemetry collection for the current command"},
{Name: "--template", Description: "Use a custom template located locally, in NPM, or GitHub"},
{Name: "--nosave", Description: "Do not save"},
{Name: "--link", Description: "Remove specified platforms"},
{Name: "--save", Description: "Updates the version specified in **config.xml**"},
{Name: "--searchpath", Description: "Don't search the registry for plugins"},
{Name: "--debug", Description: "Build it for a device"},
{Name: "--emulator", Description: "Platform name(s) to build. If not specified, all platforms are built"},
{Name: "--list", Description: "Deploy a debug build. This is the default behavior unless --release is specified"},
{Name: "--release", Description: "Deploy a release build"},
{Name: "--noprepare", Description: "Skip preparing (available in Cordova v6.2 or later)"},
{Name: "--nobuild", Description: "Skip building"},
{Name: "--device", Description: "Deploy to a device"},
{Name: "--target", Description: "Run project with a local webserver (including prepare)"},
},
})
}