aboutsummaryrefslogtreecommitdiff
path: root/.oh-my-zsh/plugins/grails
diff options
context:
space:
mode:
authorMarvin Borner2020-03-16 23:33:42 +0100
committerMarvin Borner2020-03-16 23:33:42 +0100
commit0e9ddbb0bf0cd34500155ea4b03de2e2a38d8ab2 (patch)
tree719da1c7fe5dabb872fe9ff1582c39b55ccd488e /.oh-my-zsh/plugins/grails
parente5d38956336ab1be954bdbd12808c5f98f8bd925 (diff)
Well I'm using Arch again
Diffstat (limited to '.oh-my-zsh/plugins/grails')
-rw-r--r--.oh-my-zsh/plugins/grails/README.md71
-rw-r--r--.oh-my-zsh/plugins/grails/grails.plugin.zsh60
2 files changed, 0 insertions, 131 deletions
diff --git a/.oh-my-zsh/plugins/grails/README.md b/.oh-my-zsh/plugins/grails/README.md
deleted file mode 100644
index 64b4a9f..0000000
--- a/.oh-my-zsh/plugins/grails/README.md
+++ /dev/null
@@ -1,71 +0,0 @@
-# Grails plugin
-
-This plugin adds completion for the [Grails 2 CLI](https://grails.github.io/grails2-doc/2.5.x/guide/commandLine.html)
-
-To use it, add `grails` to the plugins array in your zshrc file:
-
-```zsh
-plugins=(... grails)
-```
-
-It looks for scripts in the following paths:
-
-- `$GRAILS_HOME/scripts`
-- `~/.grails/scripts`
-- `./scripts`
-- `./plugins/*/scripts`
-
-## Grails Commands
-- `add-proxy`
-- `alias`
-- `bootstrap`
-- `bug-report`
-- `clean`
-- `clean-all`
-- `clear-proxy`
-- `compile`
-- `console`
-- `create-app`
-- `create-controller`
-- `create-domain-class`
-- `create-filters`
-- `create-integration-test`
-- `create-multi-project-build`
-- `create-plugin`
-- `create-pom`
-- `create-script`
-- `create-service`
-- `create-tag-lib`
-- `create-unit-test`
-- `dependency-report`
-- `doc`
-- `help`
-- `init`
-- `install-app-templates`
-- `install-dependency`
-- `install-plugin`
-- `install-templates`
-- `integrate-with`
-- `interactive`
-- `list-plugin-updates`
-- `list-plugins`
-- `migrate-docs`
-- `package`
-- `package-plugin`
-- `plugin-info`
-- `refresh-dependencies`
-- `remove-proxy`
-- `run-app`
-- `run-script`
-- `run-war`
-- `set-grails-version`
-- `set-proxy`
-- `set-version`
-- `shell`
-- `stats`
-- `stop-app`
-- `test-app`
-- `uninstall-plugin`
-- `url-mappings-report`
-- `war`
-- `wrapper`
diff --git a/.oh-my-zsh/plugins/grails/grails.plugin.zsh b/.oh-my-zsh/plugins/grails/grails.plugin.zsh
deleted file mode 100644
index 1177773..0000000
--- a/.oh-my-zsh/plugins/grails/grails.plugin.zsh
+++ /dev/null
@@ -1,60 +0,0 @@
-_enumerateGrailsScripts() {
- # Default directoryies
- directories=($GRAILS_HOME/scripts ~/.grails/scripts ./scripts)
-
- # Check all of the plugins directories, if they exist
- if [ -d plugins ]
- then
- directories+=(plugins/*/scripts)
- fi
-
- # Enumerate all of the Groovy files
- files=()
- for dir in $directories;
- do
- if [ -d $dir ]
- then
- files+=($dir/[^_]*.groovy)
- fi
- done
-
- # Don't try to basename ()
- if [ ${#files} -eq 0 ];
- then
- return
- fi
-
- scripts=()
- for file in $files
- do
- # - Strip the path
- # - Remove all scripts with a leading '_'
- # - PackagePlugin_.groovy -> PackagePlugin
- # - PackagePlugin -> Package-Plugin
- # - Package-Plugin -> package-plugin
- command=$(basename $file \
- | sed -E -e 's/^_?([^_]+)_?.groovy/\1/'\
- -e 's/([a-z])([A-Z])/\1-\2/g' \
- | tr "[:upper:]" "[:lower:]" \
- | sort \
- | uniq)
- scripts+=($command)
- done
- echo $scripts
-}
-
-_grails() {
- if (( CURRENT == 2 )); then
- scripts=( $(_enumerateGrailsScripts) )
-
- if [ ${#scripts} -ne 0 ];
- then
- _multi_parts / scripts
- return
- fi
- fi
-
- _files
-}
-
-compdef _grails grails