Custom completion plugins

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
This commit is contained in:
Gaetan Semet 2013-06-26 17:26:03 +02:00
commit 95c580cabb
7 changed files with 152 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#compdef artget.py
#
# this is zsh completion function file.
# generated by genzshcomp(ver: 0.5.1)
#
typeset -A opt_args
local context state line
_arguments -s -S \
"-h[show this help message and exit]:" \
"--help[show this help message and exit]:" \
"--creds[base64 encoded credentials to log into the artifactory server]::CREDS:_files" \
"--user[credentials to log into the artifactory server]::USER:_files" \
"--password[credentials to log into the artifactory server path of the file where the artifact should be stored]::PASSWORD:_files" \
"*::args:_files"

View file

@ -0,0 +1,27 @@
#compdef artifactory_slave.py
#
# this is zsh completion function file.
# generated by genzshcomp(ver: 0.5.1)
#
typeset -A opt_args
local context state line
_arguments -s -S \
"-h[show this help message and exit]:" \
"--help[show this help message and exit]:" \
"--baseuri[base uri where to push artifacts]::URI:_files" \
"-b[base uri where to push artifacts]::URI:_files" \
"--creds[base64(\"$user:$encryptedpasswd\") encoded credentials this is intended to be used with help of artifactory.getCreds() txwebservices API for automation only]::CREDS:_files" \
"-c[base64(\"$user:$encryptedpasswd\") encoded credentials this is intended to be used with help of artifactory.getCreds() txwebservices API for automation only]::CREDS:_files" \
"--user[userid to use for authentication in case of cmdline usage]::USER:_files" \
"-u[userid to use for authentication in case of cmdline usage]::USER:_files" \
"--properties[properties to send, in the form \"prop1=<val>;prop2=<val2>\"]::PROPS:_files" \
"-p[properties to send, in the form \"prop1=<val>;prop2=<val2>\"]::PROPS:_files" \
"--directory_path[directory to push]::DIR:_files" \
"-d[directory to push]::DIR:_files" \
"--file_path[file to push]::FILE_PATH:_files" \
"-f[file to push]::FILE_PATH:_files" \
"--threads[THREADS number of parallel threads to use]::THREADS:_files" \
"-j[THREADS number of parallel threads to use]::THREADS:_files" \
"*::args:_files"

View file

@ -0,0 +1,33 @@
#compdef --help
#
# this is zsh completion function file.
# generated by genzshcomp(ver: 0.5.1)
#
typeset -A opt_args
local context state line
_arguments -s -S \
"-h[show this help message and exit]:" \
"--help[show this help message and exit]:" \
"--branch[Set the android branch name]::BRANCH_NAME:_files" \
"-b[Set the android branch name]::BRANCH_NAME:_files" \
"--ext-rel[External release branch in which to merge]::EXTREL:_files" \
"-e[External release branch in which to merge]::EXTREL:_files" \
"--suffix[Set the branch suffix]::BRANCH_SUFFIX:_files" \
"-s[Set the branch suffix]::BRANCH_SUFFIX:_files" \
"--external-customers[Set the external customer configuration (JSON)]::EXTERNAL_CUSTOMERS:_files" \
"-c[Set the external customer configuration (JSON)]::EXTERNAL_CUSTOMERS:_files" \
"--dry[Do not execute anything, only print commands]" \
"-d[Do not execute anything, only print commands]" \
"--interactive[Interactive mode (debug). Await for user input at each command]" \
"-i[Interactive mode (debug). Await for user input at each command]" \
"--git-push-url[Git push url]::URL:_files" \
"-u[Git push url]::URL:_files" \
"--git-push[Enable git push command]" \
"-p[Enable git push command]" \
"--quiet[Quiet mode]" \
"-q[Quiet mode]" \
"--artifactory_server[url of the artifactory server]::ARTIFACTORY_SERVER:_files" \
"--artifactory_creds[credentials to log into the artifactory server]::ARTIFACTORY_CREDS:_files" \
"*::args:_files"

View file

@ -0,0 +1,21 @@
#compdef external_release_steps_update_external_branch.py
#
# this is zsh completion function file.
# generated by genzshcomp(ver: 0.5.1)
#
typeset -A opt_args
local context state line
_arguments -s -S \
"-h[show this help message and exit]:" \
"--help[show this help message and exit]:" \
"--weekly[Weekly branch to merge]::WEEKLY:_files" \
"-w[Weekly branch to merge]::WEEKLY:_files" \
"--ext-rel[External release branch in which to merge]::EXTREL:_files" \
"-e[External release branch in which to merge]::EXTREL:_files" \
"--git-push-url[Git push url]::URL:_files" \
"-u[Git push url]::URL:_files" \
"--git-push[Enable git push command]" \
"-p[Enable git push command]" \
"*::args:_files"

View file

@ -0,0 +1,33 @@
#compdef fota_step_slave.py
#
# this is zsh completion function file.
# generated by genzshcomp(ver: 0.5.1)
#
typeset -A opt_args
local context state line
_arguments -s -S \
"-h[show this help message and exit]:" \
"--help[show this help message and exit]:" \
"--r3[use the r3 files path]" \
"--branch[release branch]::BRANCH:_files" \
"--weekly[generate weekly instead of latest]" \
"--boards[specify the board to generate ota]::BOARDS:_files" \
"--test[use the test path]" \
"--w2l[push weekly to latest otas]" \
"--l2w[push latest to weekly otas]" \
"--r2tor3[push otas]" \
"--force_src[force source targetfiles]::FORCE_SRC:_files" \
"--force_dst[force destination targetfiles]::FORCE_DST:_files" \
"--dryrun[dont do, just print actions]" \
"--tmpdir[directory for holding temporary files]::TMPDIR:_files" \
"--cachedir[directory for storing the targetfiles]::CACHEDIR:_files" \
"--diffusion_server_base[dns name of the publication server]::DIFFUSION_SERVER_BASE:_files" \
"--destdir[directory for storing the output on ota server]::DESTDIR:_files" \
"--reason[reason to add to the fota caption in case of forcedst]::REASON:_files" \
"--index_html_destinations[scp urls to the destinations index_htmls]::INDEX_HTML_DESTINATIONS:_files" \
"--diffusion_server_type[the type of the diffusion_server]::{artifactory,legacy}:(artifactory legacy):" \
"--artifactory_server[url of the artifactory server]::ARTIFACTORY_SERVER:_files" \
"--artifactory_creds[credentials to log into the artifactory server]::ARTIFACTORY_CREDS:_files" \
"*::args:_files"

22
custom/plugins/txw/_txw Normal file
View file

@ -0,0 +1,22 @@
#compdef txw
#
# this is zsh completion function file.
# generated by genzshcomp(ver: 0.5.1)
#
typeset -A opt_args
local context state line
_arguments -s -S \
"-h[show this help message and exit]:" \
"--help[show this help message and exit]:" \
"--debug[Enable debugging output]" \
"--quiet[Suppress output]" \
"--verbose[Enable additional output]" \
"--gerrit_website[Override ~/.txgerrit.conf.yaml option gerrit_website]::GERRIT_WEBSITE:_files" \
"--bz_website[Override ~/.txgerrit.conf.yaml option bz_website]::BZ_WEBSITE:_files" \
"--artifactory_website[Override ~/.txgerrit.conf.yaml option artifactory_website]::ARTIFACTORY_WEBSITE:_files" \
"--auto_proxy[Override ~/.txgerrit.conf.yaml option auto_proxy]::AUTO_PROXY:_files" \
"--username[Override ~/.txgerrit.conf.yaml option username]::USERNAME:_files" \
"--password[Override ~/.txgerrit.conf.yaml option password atest,artifactory-clean-cache,artifactory-cp} copy artifacts inside the same repository latest copy build artifacts for latest che clean cached version of the given url on all other sites]::PASSWORD:_files" \
"*::args:_files"