25 local _application_cmds='run startScripts installApp distZip distTar' |
25 local _application_cmds='run startScripts installApp distZip distTar' |
26 local _other_cmd='clean init install interactive' |
26 local _other_cmd='clean init install interactive' |
27 declare -a _extra |
27 declare -a _extra |
28 local cur prev |
28 local cur prev |
29 cur=${COMP_WORDS[COMP_CWORD]} |
29 cur=${COMP_WORDS[COMP_CWORD]} |
30 [[ $COMP_CWORD != 0 ]] && prev=${COMP_WORDS[COMP_CWORD-1]} |
30 [[ $COMP_CWORD -gt 1 ]] && prev=${COMP_WORDS[COMP_CWORD-1]} |
|
31 |
|
32 local _tasks_full='help - Displays a help message. |
|
33 assemble - Assembles the outputs of this project. |
|
34 bootRepackage - Repackage existing JAR and WAR archives so that they can be executed from the command line. |
|
35 build - Assembles and tests this project. |
|
36 buildDependents - Assembles and tests this project and all projects that depend on it. |
|
37 buildNeeded - Assembles and tests this project and all projects it depends on. |
|
38 classes - Assembles main classes. |
|
39 clean - Deletes the build directory. |
|
40 jar - Assembles a jar archive containing the main classes. |
|
41 testClasses - Assembles test classes. |
|
42 buildEnvironment - Displays all buildscript dependencies. |
|
43 components - Displays the components. |
|
44 dependencies - Displays all dependencies. |
|
45 dependencyInsight - Displays the insight into a specific dependency. |
|
46 help - Displays a help message. |
|
47 model - Displays the configuration model. |
|
48 projects - Displays the sub-projects. |
|
49 properties - Displays the properties. |
|
50 tasks - Displays the tasks runnable from project. |
|
51 cleanIdea - Cleans IDEA project files (IML, IPR) |
|
52 idea - Generates IDEA project files (IML, IPR, IWS) |
|
53 check - Runs all checks. |
|
54 test - Runs the unit tests. |
|
55 install - Installs the 'archives' artifacts into the local Maven repository. |
|
56 javadoc - Generates Javadoc API documentation for the main source code. |
|
57 bootRun - Run the project with support for auto-detecting main class and reloading static resources |
|
58 flywayBaseline - Baselines an existing database, excluding all migrations up to and including baselineVersion. |
|
59 flywayClean - Drops all objects in the configured schemas. |
|
60 flywayInfo - Prints the details and status information about all the migrations. |
|
61 flywayMigrate - Migrates the schema to the latest version. |
|
62 flywayRepair - Repairs the Flyway metadata table. |
|
63 flywayValidate - Validate applied migrations against resolved ones' |
|
64 |
|
65 if [[ $COMP_CWORD = 1 ]] && [[ "$cur" != -* ]]; then |
|
66 local IFS=$'\n' |
|
67 COMPREPLY=( $(compgen -W '${_tasks_full}' -- "$cur") ) |
|
68 if [[ ${#COMPREPLY[@]} -le 1 ]]; then |
|
69 COMPREPLY=( ${COMPREPLY[0]%% *-*} ) |
|
70 fi |
|
71 return |
|
72 fi |
31 |
73 |
32 # Perform default option completion for command. |
74 # Perform default option completion for command. |
33 if [[ -z "$curr" ]]; then |
75 if [[ -z "$curr" ]]; then |
34 case "$prev" in |
76 case "$prev" in |
35 help) |
77 help) |