aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShohei YOSHIDA <syohex@gmail.com>2025-12-10 12:59:32 +0900
committerGitHub <noreply@github.com>2025-12-10 12:59:32 +0900
commit6d3a599fe99cadf4d12cebe12bd35f1afc91e787 (patch)
treec3f721f1b07230e7748009a427bb25c8acccc39e
parentMerge pull request #1183 from zsh-users/remove_google (diff)
parentRemove fly completion from concourse (diff)
downloadzsh-completions-6d3a599fe99cadf4d12cebe12bd35f1afc91e787.tar
zsh-completions-6d3a599fe99cadf4d12cebe12bd35f1afc91e787.tar.gz
zsh-completions-6d3a599fe99cadf4d12cebe12bd35f1afc91e787.tar.bz2
zsh-completions-6d3a599fe99cadf4d12cebe12bd35f1afc91e787.tar.lz
zsh-completions-6d3a599fe99cadf4d12cebe12bd35f1afc91e787.tar.xz
zsh-completions-6d3a599fe99cadf4d12cebe12bd35f1afc91e787.tar.zst
zsh-completions-6d3a599fe99cadf4d12cebe12bd35f1afc91e787.zip
Merge pull request #1186 from zsh-users/remove_concourse_fly
Remove fly completion from concourse
-rw-r--r--src/_concourse1038
1 files changed, 1 insertions, 1037 deletions
diff --git a/src/_concourse b/src/_concourse
index 4d0cbc6..802b9d1 100644
--- a/src/_concourse
+++ b/src/_concourse
@@ -1,4 +1,4 @@
-#compdef concourse fly
+#compdef concourse
# ------------------------------------------------------------------------------
# Description
# -----------
@@ -13,1041 +13,6 @@
#
# ------------------------------------------------------------------------------
-local _concourse_fly_target \
- _concourse_fly_pipeline \
- _concourse_fly_pipeline_config \
- _concourse_fly_job \
- _concourse_fly_resource \
- _concourse_fly_resource_type
-
-(( $+functions[_concourse_fly] )) ||
-_concourse_fly() {
-
- local context state state_descr line ret=1
- typeset -A opt_args
-
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(- : *)'{-v,--version}'[print the version of Fly and exit]' \
- {-t,--target=}'[concourse target name]: :_concourse_fly_targets' \
- --verbose'[print API requests and responses]' \
- --print-table-headers'[print table headers even for redirected output]' \
- '(-): :->command' \
- '(-)*:: :->arguments' \
- && ret=0
-
- case $state in
- (command)
- _concourse_fly_commands
- ;;
- (arguments)
- curcontext=${curcontext%:*:*}:concourse-fly-$words[1]:
- if (( $+functions[_concourse_fly_${words[1]}_args] )); then
- _concourse_fly_target=${(v)opt_args[(i)-t|--target]}
- _concourse_fly_${words[1]}_args && ret=0
- else
- _message "unknown command ${words[1]}" && ret=1
- fi
- ;;
- esac
-
- return ret
-}
-
-(( $+functions[_concourse_fly_commands] )) ||
-_concourse_fly_commands() {
- local commands=(
- {ab,abort-build}":abort a build"
- {bs,builds}":list builds data"
- {cr,check-resource}":check a resource"
- {crt,check-resource-type}":check a resource-type"
- {cl,checklist}":print a Checkfile of the given pipeline"
- {ctc,clear-task-cache}":clears cache from a task container"
- {cs,containers}":print the active containers"
- {c,curl}":curl the api"
- {dtg,delete-target}":delete target"
- {dp,destroy-pipeline}":destroy a pipeline"
- {dt,destroy-team}":destroy a team and delete all of its data"
- {etg,edit-target}":edit a target"
- {e,execute}":execute a one-off build using local bits"
- {ep,expose-pipeline}":make a pipeline publicly viewable"
- {fp,format-pipeline}":format a pipeline config"
- {gp,get-pipeline}":get a pipeline's current configuration"
- {gt,get-team}":show team configuration"
- "help:print help message"
- {hp,hide-pipeline}":hide a pipeline from the public"
- {i,intercept,hijack}":execute a command in a container"
- {js,jobs}":list the jobs in the pipelines"
- {lw,land-worker}":land a worker"
- {l,login}":authenticate with the target"
- {o,logout}":release authentication with the target"
- {op,order-pipelines}":orders pipelines"
- {pj,pause-job}":pause a job"
- {pp,pause-pipeline}":pause a pipeline"
- {ps,pipelines}":list the configured pipelines"
- {pw,prune-worker}":prune a stalled, landing, landed, or retiring worker"
- {rp,rename-pipeline}":rename a pipeline"
- {rt,rename-team}":rename a team"
- {rvs,resource-versions}":list the versions of a resource"
- {rs,resources}":list the resources in the pipeline"
- {sp,set-pipeline}":create or update a pipeline's configuration"
- {st,set-team}":create or modify a team to have the given credentials"
- "status:login status"
- {s,sync}":download and replace the current fly from the target"
- {ts,targets}":list saved targets"
- {t,teams}":list the configured teams"
- {tj,trigger-job}":start a job in a pipeline"
- {uj,unpause-job}":unpause a job"
- {up,unpause-pipeline}":un-pause a pipeline"
- "userinfo:user information"
- {vp,validate-pipeline}":validate a pipeline config"
- {vs,volumes}":list the active volumes"
- {w,watch}":stream a build's output"
- {ws,workers}":list the registered workers"
- )
- _describe -t commands commands commands
-}
-
-(( $+functions[_concourse_fly_ab_args] )) ||
-_concourse_fly_ab_args() {
- _concourse_fly_abort-build_args
-}
-
-(( $+functions[_concourse_fly_bs_args] )) ||
-_concourse_fly_bs_args() {
- _concourse_fly_builds_args
-}
-
-(( $+functions[_concourse_fly_cl_args] )) ||
-_concourse_fly_cl_args() {
- _concourse_fly_checklist_args
-}
-
-(( $+functions[_concourse_fly_cr_args] )) ||
-_concourse_fly_cr_args() {
- _concourse_fly_check-resource_args
-}
-
-(( $+functions[_concourse_fly_crt_args] )) ||
-_concourse_fly_crt_args() {
- _concourse_fly_check-resource-type_args
-}
-
-(( $+functions[_concourse_fly_ctc_args] )) ||
-_concourse_fly_ctc_args() {
- _concourse_fly_clear-task-cache_args
-}
-
-(( $+functions[_concourse_fly_cs_args] )) ||
-_concourse_fly_cs_args() {
- _concourse_fly_containers_args
-}
-
-(( $+functions[_concourse_fly_c_args] )) ||
-_concourse_fly_c_args() {
- _concourse_fly_curl_args
-}
-
-(( $+functions[_concourse_fly_dtg_args] )) ||
-_concourse_fly_dtg_args() {
- _concourse_fly_delete-target_args
-}
-
-(( $+functions[_concourse_fly_dp_args] )) ||
-_concourse_fly_dp_args() {
- _concourse_fly_destroy-pipeline_args
-}
-
-(( $+functions[_concourse_fly_dt_args] )) ||
-_concourse_fly_dt_args() {
- _concourse_fly_destroy-team_args
-}
-
-(( $+functions[_concourse_fly_etg_args] )) ||
-_concourse_fly_etg_args() {
- _concourse_fly_edit-target_args
-}
-
-(( $+functions[_concourse_fly_e_args] )) ||
-_concourse_fly_e_args() {
- _concourse_fly_execute_args
-}
-
-(( $+functions[_concourse_fly_ep_args] )) ||
-_concourse_fly_ep_args() {
- _concourse_fly_expose-pipeline_args
-}
-
-(( $+functions[_concourse_fly_fp_args] )) ||
-_concourse_fly_fp_args() {
- _concourse_fly_format-pipeline_args
-}
-
-(( $+functions[_concourse_fly_gp_args] )) ||
-_concourse_fly_gp_args() {
- _concourse_fly_get-pipeline_args
-}
-
-(( $+functions[_concourse_fly_gt_args] )) ||
-_concourse_fly_gt_args() {
- _concourse_fly_get-team_args
-}
-
-(( $+functions[_concourse_fly_hp_args] )) ||
-_concourse_fly_hp_args() {
- _concourse_fly_hide-pipeline_args
-}
-
-(( $+functions[_concourse_fly_hijack_args] )) ||
-_concourse_fly_hijack_args() {
- _concourse_fly_intercept_args
-}
-
-(( $+functions[_concourse_fly_i_args] )) ||
-_concourse_fly_i_args() {
- _concourse_fly_intercept_args
-}
-
-(( $+functions[_concourse_fly_js_args] )) ||
-_concourse_fly_js_args() {
- _concourse_fly_jobs_args
-}
-
-(( $+functions[_concourse_fly_lw_args] )) ||
-_concourse_fly_lw_args() {
- _concourse_fly_land-worker_args
-}
-
-(( $+functions[_concourse_fly_l_args] )) ||
-_concourse_fly_l_args() {
- _concourse_fly_login_args
-}
-
-(( $+functions[_concourse_fly_o_args] )) ||
-_concourse_fly_o_args() {
- _concourse_fly_logout_args
-}
-
-(( $+functions[_concourse_fly_op_args] )) ||
-_concourse_fly_op_args() {
- _concourse_fly_order-pipelines_args
-}
-
-(( $+functions[_concourse_fly_pj_args] )) ||
-_concourse_fly_pj_args() {
- _concourse_fly_pause-job_args
-}
-
-(( $+functions[_concourse_fly_pp_args] )) ||
-_concourse_fly_pp_args() {
- _concourse_fly_pause-pipeline_args
-}
-
-(( $+functions[_concourse_fly_ps_args] )) ||
-_concourse_fly_ps_args() {
- _concourse_fly_pipelines_args
-}
-
-(( $+functions[_concourse_fly_pw_args] )) ||
-_concourse_fly_pw_args() {
- _concourse_fly_prune-worker_args
-}
-
-(( $+functions[_concourse_fly_rp_args] )) ||
-_concourse_fly_rp_args() {
- _concourse_fly_rename-pipeline_args
-}
-
-(( $+functions[_concourse_fly_rt_args] )) ||
-_concourse_fly_rt_args() {
- _concourse_fly_rename-team_args
-}
-
-(( $+functions[_concourse_fly_rs_args] )) ||
-_concourse_fly_rs_args() {
- _concourse_fly_resources_args
-}
-
-(( $+functions[_concourse_fly_rvs_args] )) ||
-_concourse_fly_rvs_args() {
- _concourse_fly_resource-versions_args
-}
-
-(( $+functions[_concourse_fly_sp_args] )) ||
-_concourse_fly_sp_args() {
- _concourse_fly_set-pipeline_args
-}
-
-(( $+functions[_concourse_fly_st_args] )) ||
-_concourse_fly_st_args() {
- _concourse_fly_set-team_args
-}
-
-(( $+functions[_concourse_fly_s_args] )) ||
-_concourse_fly_s_args() {
- _concourse_fly_sync_args
-}
-
-(( $+functions[_concourse_fly_ts_args] )) ||
-_concourse_fly_ts_args() {
- _concourse_fly_targets_args
-}
-
-(( $+functions[_concourse_fly_t_args] )) ||
-_concourse_fly_t_args() {
- _concourse_fly_teams_args
-}
-
-(( $+functions[_concourse_fly_tj_args] )) ||
-_concourse_fly_tj_args() {
- _concourse_fly_trigger-job_args
-}
-
-(( $+functions[_concourse_fly_uj_args] )) ||
-_concourse_fly_uj_args() {
- _concourse_fly_unpause-job_args
-}
-
-(( $+functions[_concourse_fly_up_args] )) ||
-_concourse_fly_up_args() {
- _concourse_fly_unpause-pipeline_args
-}
-
-(( $+functions[_concourse_fly_vp_args] )) ||
-_concourse_fly_vp_args() {
- _concourse_fly_validate-pipeline_args
-}
-
-(( $+functions[_concourse_fly_vs_args] )) ||
-_concourse_fly_vs_args() {
- _concourse_fly_volumes_args
-}
-
-(( $+functions[_concourse_fly_w_args] )) ||
-_concourse_fly_w_args() {
- _concourse_fly_watch_args
-}
-
-(( $+functions[_concourse_fly_ws_args] )) ||
-_concourse_fly_ws_args() {
- _concourse_fly_workers_args
-}
-
-(( $+functions[_concourse_fly_help_args] )) ||
-_concourse_fly_help_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]'
-}
-
-(( $+functions[_concourse_fly_status_args] )) ||
-_concourse_fly_status_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]'
-}
-
-(( $+functions[_concourse_fly_userinfo_args] )) ||
-_concourse_fly_userinfo_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '--json[print command result as JSON]'
-}
-
-(( $+functions[_concourse_fly_abort-build_args] )) ||
-_concourse_fly_abort-build_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-j --job)'{-j,--job=}'[name of a job to cancel]: :_concourse_fly_pipeline_slash_jobs' \
- '(-b --build)'{-b,--build=}'[job build number to cancel, or build id]: :_concourse_fly_builds'
-}
-
-(( $+functions[_concourse_fly_builds_args] )) ||
-_concourse_fly_builds_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-a --all-teams)'{-a,--all-teams}'[show builds for the all teams that user has access to]' \
- '(-c --count)'{-c,--count=}'[number of builds you want to limit the return to]: :number' \
- '--current-team[show builds for the currently targeted team]' \
- '(-j --job -p --pipeline)'{-j,--job=}'[name of a job to get builds for]: :_concourse_fly_pipeline_slash_jobs' \
- '--json[print command result as JSON]' \
- '(-j --job -p --pipeline)'{-p,--pipeline=}'[name of a pipeline to get builds for]: :_concourse_fly_pipelines' \
- '--since=[start of the range to filter builds]: :_concourse_fly_dates' \
- '--until=[end of the range to filter builds]: :_concourse_fly_dates'
-}
-
-(( $+functions[_concourse_fly_checklist_args] )) ||
-_concourse_fly_checklist_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-p --pipeline)'{-p,--pipeline=}'[the pipeline from which to generate the Checkfile]: :_concourse_fly_pipelines'
-}
-
-(( $+functions[_concourse_fly_check-resource_args] )) ||
-_concourse_fly_check-resource_args() {
-
- local context state state_descr line ret=1
- typeset -A opt_args
-
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-r --resource)'{-r,--resource=}'[name of a resource to check]: :_concourse_fly_pipeline_slash_resources' \
- '(-f --from)'{-f,--from=}'[version of the resource to check from]: :->version' \
- && ret=0
-
- case $state in
- (version)
- _concourse_fly_resource=${(v)opt_args[(i)-r|--resource]}
- _concourse_fly_pipeline_resource_versions && ret=0
- ;;
- esac
-
- return ret
-}
-
-(( $+functions[_concourse_fly_check-resource-type_args] )) ||
-_concourse_fly_check-resource-type_args() {
-
- local context state state_descr line ret=1
- typeset -A opt_args
-
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-r --resource-type)'{-r,--resource-type=}'[name of a resource type to check]: :_concourse_fly_pipeline_slash_resource_types' \
- '(-f --from)'{-f,--from=}'[version of the resource type to check from]: :->version' \
- && ret=0
-
- case $state in
- (version)
- _concourse_fly_resource_type=${(v)opt_args[(i)-r|--resource-type]}
- _concourse_fly_pipeline_resource_type_versions && ret=0
- ;;
- esac
-
- return ret
-}
-
-(( $+functions[_concourse_fly_clear-task-cache_args] )) ||
-_concourse_fly_clear-task-cache_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-j --job)'{-j,--job=}'[name of a job to cancel]: :_concourse_fly_pipeline_slash_jobs' \
- '(-s --step)'{-s,--step=}'[step name to clear cache from]:task step' \
- '(-c --cache-path)'{-c,--cache-path=}'[cache directory to clear out]: :_files -/' \
- '(-n --non-interactive)'{-n,--non-interactive=}'[destroy the task cache(s) without confirmation]'
-}
-
-(( $+functions[_concourse_fly_containers_args] )) ||
-_concourse_fly_containers_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '--json[print command result as JSON]'
-}
-
-(( $+functions[_concourse_fly_curl_args] )) ||
-_concourse_fly_curl_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '--print-and-exit[print curl command and exit]'
-}
-
-(( $+functions[_concourse_fly_delete-target_args] )) ||
-_concourse_fly_delete-target_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-a --all)'{-a,--all}'[delete all targets]'
-}
-
-(( $+functions[_concourse_fly_destroy-pipeline_args] )) ||
-_concourse_fly_destroy-pipeline_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-p --pipeline)'{-p,--pipeline=}'[the pipeline to destroy]: :_concourse_fly_pipelines' \
- '(-n --non-interactive)'{-n,--non-interactive}'[destroy the pipeline without confirmation]'
-}
-
-(( $+functions[_concourse_fly_destroy-team_args] )) ||
-_concourse_fly_destroy-team_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-n --team-name)'{-n,--team-name=}'[the team to delete]: :_concourse_fly_teams' \
- '(-n --non-interactive)'{-n,--non-interactive}'[force apply configuration]'
-}
-
-(( $+functions[_concourse_fly_edit-target_args] )) ||
-_concourse_fly_edit-target_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '--target-name=[update target name]: :_concourse_fly_targets' \
- '(-u --concourse-url)'{-u,--concourse-url=}'[update concourse URL]: :_urls' \
- '(-n --team-name)'{-n,--team-name=}'[update concourse URL]: :_concourse_fly_teams'
-}
-
-(( $+functions[_concourse_fly_execute_args] )) ||
-_concourse_fly_execute_args() {
-
- local context state state_descr line ret=1
- typeset -A opt_args
-
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-c --config)'{-c,--config=}'[the task config to execute]: :_concourse_config_files' \
- '(-p --privileged)'{-p,--privileged}'[run the task with full privileges]' \
- '--include-ignored[disregard .gitignore entries and uploads everything]' \
- '*'{-i,--input=}'[an input to provide to the task]: :->input' \
- '*'{-m,--input-mapping=}'[map a resource to a different name as task input]: :->input-mapping' \
- '(-j --inputs-from)'{-j,--inputs-from=}'[a job to base the inputs on]: :_concourse_fly_pipeline_slash_jobs' \
- '*'{-o,--output=}'[an output to fetch from the task]: :->output' \
- '--image=[image resource for the one-off build]: :_concourse_fly_images' \
- '*--tag=[a tag for a specific environment]: :_concourse_fly_tags' \
- '*'{-v,--var=}'[specify a string value to set for a variable in the pipeline]: :->var' \
- '*'{-y,--yaml-var=}'[specify a YAML value to set for a variable in the pipeline]: :->var' \
- '(-l --load-vars-from)'{-l,--load-vars-from=}'[variable flag that can be used for filling in template values in configuration from a YAML file]: :_files' \
- && ret=0
-
- _concourse_fly_pipeline_config=${(v)opt_args[(i)-c|--config]}
-
- case $state in
- (input-mapping)
- # TODO complete --input-mapping
- _message 'input mapping'
- ;;
- (input)
- _concourse_fly_input_equal_paths && ret=0
- ;;
- (output)
- _concourse_fly_output_equal_paths && ret=0
- ;;
- (var)
- _concourse_fly_var_equal_values && ret=0
- ;;
- esac
-
- return ret
-}
-
-(( $+functions[_concourse_fly_expose-pipeline_args] )) ||
-_concourse_fly_expose-pipeline_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-p --pipeline)'{-p,--pipeline=}'[pipeline to expose]: :_concourse_fly_pipelines'
-}
-
-(( $+functions[_concourse_fly_format-pipeline_args] )) ||
-_concourse_fly_format-pipeline_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-c --config)'{-c,--config=}'[pipeline configuration file]: :_concourse_config_files' \
- '(-w --write)'{-w,--write}'[do not print to stdout, overwrite the file in place]'
-}
-
-(( $+functions[_concourse_fly_get-pipeline_args] )) ||
-_concourse_fly_get-pipeline_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-p --pipeline)'{-p,--pipeline=}'[get configuration of this pipeline]: :_concourse_fly_pipelines' \
- '(-j --json)'{-j,--json}'[print config as json instead of yaml]'
-}
-
-(( $+functions[_concourse_fly_get-team_args] )) ||
-_concourse_fly_get-team_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-n --team)'{-n,--team=}'[get configuration of this team]: :_concourse_fly_teams' \
- '(-j --json)'{-j,--json}'[print config as json instead of yaml]'
-}
-
-(( $+functions[_concourse_fly_hide-pipeline_args] )) ||
-_concourse_fly_hide-pipeline_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-p --pipeline)'{-p,--pipeline=}'[pipeline to hide]: :_concourse_fly_pipelines'
-}
-
-(( $+functions[_concourse_fly_intercept_args] )) ||
-_concourse_fly_intercept_args() {
- # TODO complete --handle
- # TODO complete --check
- # TODO complete --step
- # TODO complete --step-type
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-j --job --handle -c --check -u --url)'{-j,--job=}'[name of a job to hijack]: :_concourse_fly_pipeline_slash_jobs' \
- '(-j --job --handle -c --check -u --url)--handle=[handle id of a job to hijack]:job handle' \
- '(-j --job --handle -c --check -u --url)'{-c,--check=}'[name of a resource'\''s checking container to hijack]:name' \
- '(-j --job --handle -c --check -u --url)'{-u,--url=}'[URL for the build, job, or check container to hijack]: :_urls' \
- '(-b --build)'{-b,--build=}'[build number within the job, or global build ID]: :_concourse_fly_builds' \
- '(-s --step)'{-s,--step=}'[name of step to hijack]:step' \
- '--step-type=[type of step to hijack]:step type' \
- '(-a --attempt)'{-a,--attempt=}'[attempt number of step to hijack]: :_values -s, "number" 1 2 3 4 5 6 7 8 9' \
- '(-):command name: _command_names -e' \
- '*::arguments:_normal'
-}
-
-(( $+functions[_concourse_fly_jobs_args] )) ||
-_concourse_fly_jobs_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-p --pipeline)'{-p,--pipeline=}'[get jobs in this pipeline]: :_concourse_fly_pipelines' \
- '--json[print command result as JSON]'
-}
-
-(( $+functions[_concourse_fly_land-worker_args] )) ||
-_concourse_fly_land-worker_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-w --worker)'{-w,--worker=}'[worker to land]: :_concourse_fly_workers'
-}
-
-(( $+functions[_concourse_fly_login_args] )) ||
-_concourse_fly_login_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-c --concourse-url)'{-c,--concourse-url=}'[concourse URL to authenticate with]: :_urls' \
- '(-k --insecure)'{-k,--insecure}'[skip verification of the endpoint'\''s SSL certificate]' \
- '(-u --username)'{-u,--username=}'[username for basic auth]: :_users' \
- '(-p --password)'{-p,--password=}'[password for basic auth]:password' \
- '(-n --team-name)'{-n,--team-name=}'[team to authenticate with]: :_concourse_fly_teams' \
- '--ca-cert=[path to Concourse PEM-encoded CA certificate file]: :_files -g "*.pem"' \
- '(-b --open-browser)'{-b,--open-browser}'[open browser to the auth endpoint]'
-}
-
-(( $+functions[_concourse_fly_logout_args] )) ||
-_concourse_fly_logout_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-a --all)'{-a,--all}'[logout of all targets]'
-}
-
-(( $+functions[_concourse_fly_order-pipelines_args] )) ||
-_concourse_fly_order-pipelines_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-p --pipeline)'{-p,--pipeline=}'[name of pipeline to order]: :_concourse_fly_pipelines'
-}
-
-(( $+functions[_concourse_fly_pause-job_args] )) ||
-_concourse_fly_pause-job_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-j --job)'{-j,--job=}'[name of a job to pause]: :_concourse_fly_pipeline_slash_jobs'
-}
-
-(( $+functions[_concourse_fly_pause-pipeline_args] )) ||
-_concourse_fly_pause-pipeline_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-p --pipeline)'{-p,--pipeline=}'[pipeline to pause]: :_concourse_fly_pipelines'
-}
-
-(( $+functions[_concourse_fly_pipelines_args] )) ||
-_concourse_fly_pipelines_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-a --all)'{-a,--all}'[show all pipelines]' \
- '--json[print command result as JSON]'
-}
-
-(( $+functions[_concourse_fly_prune-worker_args] )) ||
-_concourse_fly_prune-worker_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-w --worker)'{-w,--worker=}'[worker to prune]: :_concourse_fly_workers' \
- '(-a --all-stalled)'{-a,--all-stalled}'[prune all stalled workers]'
-}
-
-(( $+functions[_concourse_fly_rename-pipeline_args] )) ||
-_concourse_fly_rename-pipeline_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-o --old-name)'{-o,--old-name=}'[pipeline to rename]: :_concourse_fly_pipelines' \
- '(-n --new-name)'{-n,--new-name=}'[name to set as pipeline name]: :_concourse_fly_pipelines'
-}
-
-(( $+functions[_concourse_fly_rename-team_args] )) ||
-_concourse_fly_rename-team_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-o --old-name)'{-o,--old-name=}'[current team name]: :_concourse_fly_teams' \
- '(-n --new-name)'{-n,--new-name=}'[new team name]: :_concourse_fly_teams'
-}
-
-(( $+functions[_concourse_fly_resources_args] )) ||
-_concourse_fly_resources_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-p --pipeline)'{-p,--pipeline=}'[get resources in this pipeline]: :_concourse_fly_pipelines' \
- '--json[print command result as JSON]'
-}
-
-(( $+functions[_concourse_fly_resource-versions_args] )) ||
-_concourse_fly_resource-versions_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-c --count)'{-c,--count=}'[number of builds you want to limit the return to]:number' \
- '(-r --resource)'{-r,--resource=}'[name of a resource to get versions for]: :_concourse_fly_pipeline_slash_resources' \
- '--json[print command result as JSON]'
-}
-
-(( $+functions[_concourse_fly_set-pipeline_args] )) ||
-_concourse_fly_set-pipeline_args() {
-
- local context state state_descr line ret=1
- typeset -A opt_args
-
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-n --non-interactive)'{-n,--non-interactive}'[skips interactions, uses default values]' \
- '--no-color[disable color output]' \
- '--check-creds[validate credential variables against credential manager]' \
- '(-p --pipeline)'{-p,--pipeline=}'[pipeline to configure]: :_concourse_fly_pipelines' \
- '(-c --config)'{-c,--config=}'[pipeline configuration file]: :_concourse_config_files' \
- '*'{-v,--var=}'[specify a string value to set for a variable in the pipeline]: :->var' \
- '*'{-y,--yaml-var=}'[specify a YAML value to set for a variable in the pipeline]: :->var' \
- '(-l --load-vars-from)'{-l,--load-vars-from=}'[variable flag that can be used for filling in template values in configuration from a YAML file]: :_files' \
- && ret=0
-
- _concourse_fly_pipeline_config=${(v)opt_args[(i)-c|--config]}
-
- case $state in
- (var)
- _concourse_fly_var_equal_values && ret=0
- ;;
- esac
-
- return ret
-}
-
-(( $+functions[_concourse_fly_set-team_args] )) ||
-_concourse_fly_set-team_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-n --team-name)'{-n,--team-name=}'[the team to create or modify]: :_concourse_fly_teams' \
- '--non-interactive[force apply configuration]' \
- '*--local-user=[list of whitelisted local concourse users]: :_users' \
- '(-c --config)'{-c,--config=}'[configuration file for specifying team params]: :_concourse_config_files' \
- '*--bitbucket-cloud-user=[list of whitelisted Bitbucket Cloud users]:user name' \
- '*--bitbucket-cloud-team=[list of whitelisted Bitbucket Cloud teams]:team name' \
- '*--cf-user=[list of whitelisted CloudFoundry users]:user name' \
- '*--cf-org=[list of whitelisted CloudFoundry orgs]:org name' \
- '*--cf-space=[list of whitelisted CloudFoundry spaces]:space name' \
- '*--github-user=[list of whitelisted GitHub users]:user name' \
- '*--github-org=[list of whitelisted GitHub orgs]:org name' \
- '*--github-team=[list of whitelisted GitHub teams]:team name' \
- '*--gitlab-user=[list of whitelisted GitLab users]:user name' \
- '*--gitlab-group=[list of whitelisted GitLab groups]:group name' \
- '*--ldap-user=[list of whitelisted LDAP users]:user name' \
- '*--ldap-group=[list of whitelisted LDAP groups]:group name' \
- '*--oauth-user=[list of whitelisted OAuth2 users]:user name' \
- '*--oauth-group=[list of whitelisted OAuth2 groups]:group name' \
- '*--oidc-user=[list of whitelisted OIDC users]:user name' \
- '*--oidc-group=[list of whitelisted OIDC groups]:group name'
-}
-
-(( $+functions[_concourse_fly_sync_args] )) ||
-_concourse_fly_sync_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-f --force)'{-f,--force}'[sync even if versions already match]'
-}
-
-(( $+functions[_concourse_fly_targets_args] )) ||
-_concourse_fly_targets_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]'
-}
-
-(( $+functions[_concourse_fly_teams_args] )) ||
-_concourse_fly_teams_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-d --details)'{-d,--details}'[print authentication configuration]' \
- '--json[print command result as JSON]'
-}
-
-(( $+functions[_concourse_fly_trigger-job_args] )) ||
-_concourse_fly_trigger-job_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-j --job)'{-j,--job=}'[name of a job to trigger]: :_concourse_fly_pipeline_slash_jobs' \
- '(-w --watch)'{-w,--watch}'[start watching the build output]'
-}
-
-(( $+functions[_concourse_fly_unpause-job_args] )) ||
-_concourse_fly_unpause-job_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-j --job)'{-j,--job=}'[name of a job to unpause]: :_concourse_fly_pipeline_slash_jobs'
-}
-
-(( $+functions[_concourse_fly_unpause-pipeline_args] )) ||
-_concourse_fly_unpause-pipeline_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-p --pipeline)'{-p,--pipeline=}'[pipeline to unpause]: :_concourse_fly_pipelines'
-}
-
-(( $+functions[_concourse_fly_validate-pipeline_args] )) ||
-_concourse_fly_validate-pipeline_args() {
-
- local context state state_descr line ret=1
- typeset -A opt_args
-
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-c --config)'{-c,--config=}'[pipeline configuration file]: :_concourse_config_files' \
- '(-s --strict)'{-s,--strict}'[fail on warnings]' \
- '(-o --output)'{-o,--output}'[output templated pipeline to stdout]' \
- '*'{-v,--var=}'[specify a string value to set for a variable in the pipeline]: :->var' \
- '*'{-y,--yaml-var=}'[specify a YAML value to set for a variable in the pipeline]: :->var' \
- '(-l --load-vars-from)'{-l,--load-vars-from=}'[variable flag that can be used for filling in template values in configuration from a YAML file]: :_files' \
- && ret=0
-
- _concourse_fly_pipeline_config=${(v)opt_args[(i)-c|--config]}
-
- case $state in
- (var)
- _concourse_fly_var_equal_values && ret=0
- ;;
- esac
-
- return ret
-}
-
-(( $+functions[_concourse_fly_volumes_args] )) ||
-_concourse_fly_volumes_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-d --details)'{-d,--details}'[print additional information for each volume]' \
- '--json[print command result as JSON]'
-}
-
-(( $+functions[_concourse_fly_watch_args] )) ||
-_concourse_fly_watch_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-j --job)'{-j,--job=}'[watches builds of the given job]: :_concourse_fly_pipeline_slash_jobs' \
- '(-b --build)'{-b,--build=}'[watches a specific build]: :_concourse_fly_builds' \
- '(-t --timestamps)'{-t,--timestamps}'[print with local timestamp]'
-}
-
-(( $+functions[_concourse_fly_workers_args] )) ||
-_concourse_fly_workers_args() {
- _arguments -C \
- '(- : *)'{-h,--help}'[display help information]' \
- '(-d --details)'{-d,--details}'[print additional information for each worker]' \
- '--json[print command result as JSON]'
-}
-
-(( $+functions[_concourse_fly_targets] )) ||
-_concourse_fly_targets() {
- local targets=($(_call_program targets $service targets | awk '{print $1}'))
- _describe -t targets 'target' targets $@ || _message 'no target found'
-}
-
-(( $+functions[_concourse_fly_teams] )) ||
-_concourse_fly_teams() {
- if [[ -n ${_concourse_fly_target} ]]; then
- local teams=($(_call_program teams $service -t ${_concourse_fly_target} teams | awk '{print $1}'))
- _describe -t teams 'team' teams $@ || _message 'no team found'
- else
- _message 'team'
- fi
-}
-
-(( $+functions[_concourse_fly_pipelines] )) ||
-_concourse_fly_pipelines() {
- if [[ -n ${_concourse_fly_target} ]]; then
- local pipelines=($(_call_program pipelines $service -t ${_concourse_fly_target} pipelines | awk '{print $1}'))
- _describe -t pipelines 'pipeline' pipelines $@ || _message 'no pipeline found'
- else
- _message 'pipeline'
- fi
-}
-
-(( $+functions[_concourse_fly_pipeline_jobs] )) ||
-_concourse_fly_pipeline_jobs() {
- if [[ -n ${_concourse_fly_target} ]] && [[ -n ${_concourse_fly_pipeline} ]]; then
- local jobs=($(_call_program jobs $service -t ${_concourse_fly_target} jobs -p ${_concourse_fly_pipeline} 2>&1 | awk '{print $1}'))
- _describe -t jobs "${_concourse_fly_pipeline} job" jobs $@ || _message 'no job found'
- else
- _message 'job'
- fi
-}
-
-(( $+functions[_concourse_fly_pipeline_resources] )) ||
-_concourse_fly_pipeline_resources() {
- if [[ -n ${_concourse_fly_target} ]] && [[ -n ${_concourse_fly_pipeline} ]]; then
- local resources=($(_call_program resources $service -t ${_concourse_fly_target} resources -p ${_concourse_fly_pipeline} | awk '{print $1}'))
- _describe -t resources 'resource' resources $@ || _message 'no resource found'
- else
- _message 'resource'
- fi
-}
-
-(( $+functions[_concourse_fly_pipeline_resource_types] )) ||
-_concourse_fly_pipeline_resource_types() {
- if [[ -n ${_concourse_fly_target} ]] && [[ -n ${_concourse_fly_pipeline} ]]; then
- local resource_types=($(_call_program resource-types $service -t ${_concourse_fly_target} resources -p ${_concourse_fly_pipeline} | awk '{print $2}'))
- _describe -t resource-types 'resource type' resource_types $@ || _message 'no resource type found'
- else
- _message 'resource type'
- fi
-}
-
-(( $+functions[_concourse_fly_workers] )) ||
-_concourse_fly_workers() {
- if [[ -n ${_concourse_fly_target} ]]; then
- local workers=($(_call_program workers $service -t ${_concourse_fly_target} workers | awk '{print $1}'))
- _describe -t workers 'worker' workers $@ || _message 'no worker found'
- else
- _message 'worker'
- fi
-}
-
-(( $+functions[_concourse_fly_builds] )) ||
-_concourse_fly_builds() {
- if [[ -n ${_concourse_fly_target} ]]; then
- local builds=($(_call_program builds $service -t ${_concourse_fly_target} builds | awk '{print $1}'))
- _describe -t builds 'build' builds $@ || _message 'no build found'
- else
- _message 'build'
- fi
-}
-
-(( $+functions[_concourse_fly_pipeline_resource_versions] )) ||
-_concourse_fly_pipeline_resource_versions() {
- if [[ -n ${_concourse_fly_target} ]] && [[ -n ${_concourse_fly_resource} ]]; then
- local resource_versions=($(_call_program resource-versions $service -t ${_concourse_fly_target} resource-versions -r ${_concourse_fly_resource} | awk '{print $2}'))
- _describe -t resource-versions 'resource version' resource_versions $@ || _message 'no version found'
- else
- _message 'resource version'
- fi
-}
-
-(( $+functions[_concourse_fly_pipeline_config_vars] )) ||
-_concourse_fly_pipeline_config_vars() {
- if [[ -n ${_concourse_fly_pipeline_config} ]]; then
- local variables=($(grep -Po '(?<=\(\()[^\)]+' ${_concourse_fly_pipeline_config}))
- _describe -t variables 'variables' variables $@ || _message 'no variable found'
- else
- _message 'variable'
- fi
-}
-
-(( $+functions[_concourse_fly_pipeline_config_inputs] )) ||
-_concourse_fly_pipeline_config_inputs() {
- if [[ -n ${_concourse_fly_pipeline_config} ]]; then
- if (( $+commands[yq] )); then
- local inputs=($(yq -r '.. | .inputs? | arrays | .[].name' ${_concourse_fly_pipeline_config} 2>&1))
- _describe -t inputs 'input' inputs $@ || _message 'no input found'
- else
- _message 'install yq (https://github.com/kislyuk/yq) to get completion of inputs'
- fi
- else
- _message 'input'
- fi
-}
-
-(( $+functions[_concourse_fly_pipeline_config_outputs] )) ||
-_concourse_fly_pipeline_config_outputs() {
- if [[ -n ${_concourse_fly_pipeline_config} ]]; then
- if (( $+commands[yq] )); then
- local outputs=($(yq -r '.. | .outputs? | arrays | .[].name' ${_concourse_fly_pipeline_config}))
- _describe -t outputs 'output' outputs $@ || _message 'no output found'
- else
- _message 'install yq (https://github.com/kislyuk/yq) to get completion of outputs'
- fi
- else
- _message 'output'
- fi
-}
-
-(( $+functions[_concourse_fly_pipeline_resource_type_versions] )) ||
-_concourse_fly_pipeline_resource_type_versions() {
- # seems like there is no command for listing resource type versions...
- _message 'resource type version'
-}
-
-(( $+functions[_concourse_fly_tags] )) ||
-_concourse_fly_tags() {
- # seems like there is no command for listing tags...
- _message 'tag'
-}
-
-(( $+functions[_concourse_fly_dates] )) ||
-_concourse_fly_dates() {
- # _dates completer does not seem to work on zsh 5.7.1
- _dates -f '%Y-%m-%d %H:%M:%S'
-}
-
-(( $+functions[_concourse_fly_pipeline_slash_jobs] )) ||
-_concourse_fly_pipeline_slash_jobs() {
- local ret=1
- if compset -P '*/'; then
- _concourse_fly_pipeline="${${IPREFIX%/}##*=}"
- _concourse_fly_pipeline_jobs && ret=0
- else
- _concourse_fly_pipelines -qS/ && ret=0
- fi
- return ret
-}
-
-(( $+functions[_concourse_fly_pipeline_slash_resources] )) ||
-_concourse_fly_pipeline_slash_resources() {
- local ret=1
- if compset -P '*/'; then
- _concourse_fly_pipeline="${${IPREFIX%/}##*=}"
- _concourse_fly_pipeline_resources && ret=0
- else
- _concourse_fly_pipelines -qS/ && ret=0
- fi
- return ret
-}
-
-(( $+functions[_concourse_fly_pipeline_slash_resource_types] )) ||
-_concourse_fly_pipeline_slash_resource_types() {
- local ret=1
- if compset -P '*/'; then
- _concourse_fly_pipeline="${${IPREFIX%/}##*=}"
- _concourse_fly_pipeline_resource_types && ret=0
- else
- _concourse_fly_pipelines -qS/ && ret=0
- fi
- return ret
-}
-
-(( $+functions[_concourse_fly_var_equal_values] )) ||
-_concourse_fly_var_equal_values() {
- local ret=1
- if compset -P '*='; then
- _message 'value' && ret=0
- else
- _concourse_fly_pipeline_config_vars -qS= && ret=0
- fi
- return ret
-}
-
-(( $+functions[_concourse_fly_input_equal_paths] )) ||
-_concourse_fly_input_equal_paths() {
- local ret=1
- if compset -P '*='; then
- _files && ret=0
- else
- _concourse_fly_pipeline_config_inputs -qS= && ret=0
- fi
- return ret
-}
-
-(( $+functions[_concourse_fly_output_equal_paths] )) ||
-_concourse_fly_output_equal_paths() {
- local ret=1
- if compset -P '*='; then
- _files && ret=0
- else
- _concourse_fly_pipeline_config_outputs -qS= && ret=0
- fi
- return ret
-}
-
(( $+functions[_concourse_server] )) ||
_concourse_server() {
@@ -1504,7 +469,6 @@ _concourse_log_levels() {
case $service in
concourse) _concourse_server "$@" ;;
- fly) _concourse_fly "$@" ;;
*) _message "unknown command ${service}" && ret=1 ;;
esac