From a4fced2a8bfd5058eb00ba2edc73f4dc0a2430cf Mon Sep 17 00:00:00 2001 From: Ron Gebauer Date: Sun, 26 Nov 2017 19:14:56 -0800 Subject: [PATCH] Create jhipster.fish Add completion for jhipster --- CHANGELOG.md | 1 + share/completions/jhipster.fish | 37 +++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 share/completions/jhipster.fish diff --git a/CHANGELOG.md b/CHANGELOG.md index 90d1f2cee..89f73786d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ This section is for changes merged to the `major` branch that are not also merge - Added completions for - `j` (autojump #4344) - `bd` (#4472) + - `jhipster` (#4472) - Improved completions for - `git` (#4395, #4396) diff --git a/share/completions/jhipster.fish b/share/completions/jhipster.fish new file mode 100644 index 000000000..65633f417 --- /dev/null +++ b/share/completions/jhipster.fish @@ -0,0 +1,37 @@ +# JHipster 4.9.0 + +# Check if command already given +function __fish_prog_needs_command + set cmd (commandline -opc) + echo $cmd + if [ (count $cmd) -eq 1 ] + return 0 + end + return 1 +end + +# Options +complete -f -c jhipster -n '__fish_prog_needs_command' -s d -l debug -d 'Enable debugger' +complete -f -c jhipster -n '__fish_prog_needs_command' -s h -l help -d 'Output usage information' +complete -f -c jhipster -n '__fish_prog_needs_command' -s V -l version -d 'Output version number' + +# Commands +complete -f -c jhipster -n '__fish_prog_needs_command' -a app -d 'Create a new JHipster application' +complete -f -c jhipster -n '__fish_prog_needs_command' -a aws -d 'Deploy the current application to AWS' +complete -f -c jhipster -n '__fish_prog_needs_command' -a ci-cd -d 'Create pipeline scripts for popular CI tools' +complete -f -c jhipster -n '__fish_prog_needs_command' -a client -d 'Create a new JHipster client-side application' +complete -f -c jhipster -n '__fish_prog_needs_command' -a cloudfoundry -d 'Prepare Cloud Foundry deployment' +complete -f -c jhipster -n '__fish_prog_needs_command' -a docker-compose -d 'Create all required Docker deployment configuration for the selected applications' +complete -f -c jhipster -n '__fish_prog_needs_command' -r -a entity -d 'Create a new JHipster entity: JPA entity, Spring server-side components and Angular client-side components' +complete -f -c jhipster -n '__fish_prog_needs_command' -r -a export-jdl -d 'Create a JDL file from the existing entities' +complete -f -c jhipster -n '__fish_prog_needs_command' -a heroku -d 'Deploy the current application to Heroku' +complete -f -c jhipster -n '__fish_prog_needs_command' -r -a import-jdl -d 'Create entities from the JDL file passed in argument' +complete -f -c jhipster -n '__fish_prog_needs_command' -a info -d 'Display information about your current project and system' +complete -f -c jhipster -n '__fish_prog_needs_command' -a kubernetes -d 'Deploy the current application to Kubernetes' +complete -f -c jhipster -n '__fish_prog_needs_command' -r -a languages -d 'Select languages from a list of available languages. The i18n files will be copied to the /webapp/i18n folder' +complete -f -c jhipster -n '__fish_prog_needs_command' -a openshift -d 'Deploy the current application to OpenShift' +complete -f -c jhipster -n '__fish_prog_needs_command' -a rancher-compose -d 'Deploy the current application to Rancher' +complete -f -c jhipster -n '__fish_prog_needs_command' -a server -d 'Create a new JHipster server-side application' +complete -f -c jhipster -n '__fish_prog_needs_command' -r -a service -d 'Create a new Spring service bean' +complete -f -c jhipster -n '__fish_prog_needs_command' -a upgrade -d 'Upgrade the JHipster version and the generated application' +complete -f -c jhipster -n '__fish_prog_needs_command' -a completion -d 'Print command completion script'