Files
iris-context/commands/jvm/gradle.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.7 KiB
Go

package jvm
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "gradle",
Description: "Log all warnings",
Subcommands: []core.Subcommand{
{Name: "build", Description: "Compute all outputs"},
{Name: "run", Description: "Run applications"},
{Name: "check", Description: "Run all checks"},
{Name: "clean", Description: "Clear the contents of the build directory"},
{Name: "projects", Description: "List of all sub-projects"},
{Name: "tasks", Description: "List of main tasks of the selected project"},
{Name: "help", Description: "Display task usage information"},
{Name: "buildEnvironment", Description: "Visualises the buildscript dependencies of the selected project"},
{Name: "properties", Description: "Gives you a list of the properties of the selected project"},
{Name: "init", Description: "Create new Gradle builds, with new or existing projects"},
{Name: "test", Description: "Run a test task"},
},
Options: []core.Option{
{Name: "-?", Description: "Shows a help message with all available CLI options"},
{Name: "-v", Description: "Prints Gradle, Groovy, Ant, JVM, and operating system version information"},
{Name: "-S", Description: "Print out the full (very verbose) stacktrace for any exceptions"},
{Name: "-s", Description: "Print out the stacktrace also for user exceptions (e.g. compile error)"},
{Name: "--scan", Description: "Debug Gradle Daemon process"},
{Name: "--build-cache", Description: "Disables --parallel"},
{Name: "--priority", Description: "Generate a build scan with detailed performance diagnostics"},
{Name: "--watch-fs", Description: "Disables --daemon"},
{Name: "--foreground", Description: "Starts the Gradle Daemon in a foreground process"},
{Name: "-q", Description: "Log errors only"},
{Name: "-w", Description: "Set log level to warn"},
{Name: "-i", Description: "Set log level to info"},
{Name: "-d", Description: "Log in debug mode (includes normal stacktrace)"},
{Name: "--console", Description: "Specifies which type of console output to generate"},
{Name: "--warning-mode", Description: "Specifies how to log warning"},
{Name: "--include-build", Description: "Run the build as a composite, including the specified build"},
{Name: "--offline", Description: "Specifies that the build should operate without accessing network resources"},
{Name: "--refresh-dependencies", Description: "Refresh the state of dependencies"},
{Name: "--dry-run", Description: "Specifies the build file. For example: gradle --build-file=foo.gradle"},
{Name: "-c", Description: "Specifies the start directory for Gradle"},
{Name: "--project-cache-dir", Description: "Sets a system property of the JVM, for example -Dmyprop=myvalue"},
{Name: "-I", Description: "Specifies an initialization script"},
{Name: "-P", Description: "Sets a project property of the root project, for example -Pmyprop=myvalue"},
{Name: "--all", Description: "Display task usage information"},
{Name: "--task", Description: "Visualises the buildscript dependencies of the selected project"},
{Name: "--status", Description: "(Standalone command) Stop all Gradle Daemons of the same version"},
{Name: "--type", Description: "Specify project type"},
{Name: "--gradle-version", Description: "The Gradle version used for downloading and executing the Wrapper"},
{Name: "--distribution-type", Description: "The Gradle distribution type used for the Wrapper"},
{Name: "--gradle-distribution-url", Description: "The full URL pointing to Gradle distribution ZIP file"},
{Name: "--continuous", Description: "This will force test and all task dependencies of test to execute"},
},
})
}