Skip to content

Instantly share code, notes, and snippets.

@eropple
Created December 12, 2022 20:17
Show Gist options
  • Save eropple/bd002c1261c6fdfcecc6d4296f63f6e2 to your computer and use it in GitHub Desktop.
Save eropple/bd002c1261c6fdfcecc6d4296f63f6e2 to your computer and use it in GitHub Desktop.
Buggy Render completions
#!/usr/bin/env fish
# fish completion support for render
function __fish_render_using_command
set -l cmds __render __render_version __render_commands __render_config __render_config_schema __render_config_init __render_regions __render_repo __render_repo_from_template __render_blueprint __render_blueprint_launch __render_buildpack __render_buildpack_init __render_buildpack_remove __render_buildpack_add __render_services __render_services_show __render_services_list __render_services_tail __render_services_ssh __render_deploys __render_deploys_list __render_jobs __render_jobs_list __render_custom_domains __render_custom_domains_list __render_completions __render_completions_bash __render_completions_fish __render_completions_zsh
set -l words (commandline -opc)
set -l cmd "_"
for word in $words
switch $word
case '-*'
continue
case '*'
set word (string replace -r -a '\W' '_' $word)
set -l cmd_tmp $cmd"_$word"
if contains $cmd_tmp $cmds
set cmd $cmd_tmp
end
end
end
if test "$cmd" = "$argv[1]"
return 0
end
return 1
end
complete -c render -n '__fish_render_using_command __render' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render' -s p -l profile -k -f -r -a '(render completions complete string )' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render' -s r -l region -k -f -r -a '(render completions complete string )' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render' -k -f -a version -d 'Shows the application version.'
complete -c render -n '__fish_render_using_command __render_version' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_version' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_version' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_version' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_version' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_version' -s p -l profile -k -f -r -a '(render completions complete string version)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_version' -s r -l region -k -f -r -a '(render completions complete string version)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render' -k -f -a commands -d 'Lists all commands and subcommands.'
complete -c render -n '__fish_render_using_command __render_commands' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_commands' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_commands' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_commands' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_commands' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_commands' -s p -l profile -k -f -r -a '(render completions complete string commands)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_commands' -s r -l region -k -f -r -a '(render completions complete string commands)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render' -k -f -a config -d 'Commands for interacting with the render-cli configuration.'
complete -c render -n '__fish_render_using_command __render_config' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_config' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_config' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_config' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_config' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_config' -s p -l profile -k -f -r -a '(render completions complete string config)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_config' -s r -l region -k -f -r -a '(render completions complete string config)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_config' -k -f -a schema -d 'Displays the render-cli config schema (YAML; JSON Schema format).'
complete -c render -n '__fish_render_using_command __render_config_schema' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_config_schema' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_config_schema' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_config_schema' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_config_schema' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_config_schema' -s p -l profile -k -f -r -a '(render completions complete string config schema)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_config_schema' -s r -l region -k -f -r -a '(render completions complete string config schema)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_config' -k -f -a init -d 'Interactively creates a Render CLI config file.'
complete -c render -n '__fish_render_using_command __render_config_init' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_config_init' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_config_init' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_config_init' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_config_init' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_config_init' -s p -l profile -k -f -r -a '(render completions complete string config init)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_config_init' -s r -l region -k -f -r -a '(render completions complete string config init)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_config_init' -s f -l force -k -f -d 'overwrites existing files if found.'
complete -c render -n '__fish_render_using_command __render' -k -f -a regions -d 'Lists the Render regions that this version of the CLI knows about.'
complete -c render -n '__fish_render_using_command __render_regions' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_regions' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_regions' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_regions' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_regions' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_regions' -s p -l profile -k -f -r -a '(render completions complete string regions)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_regions' -s r -l region -k -f -r -a '(render completions complete string regions)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render' -k -f -a repo -d 'Commands for managing Render projects/repos.'
complete -c render -n '__fish_render_using_command __render_repo' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_repo' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_repo' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_repo' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_repo' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_repo' -s p -l profile -k -f -r -a '(render completions complete string repo)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_repo' -s r -l region -k -f -r -a '(render completions complete string repo)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_repo' -k -f -a from-template -d 'Initializes a new project repository from a template.'
complete -c render -n '__fish_render_using_command __render_repo_from_template' -k -f -a '(render completions complete string repo from-template)'
complete -c render -n '__fish_render_using_command __render_repo_from_template' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_repo_from_template' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_repo_from_template' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_repo_from_template' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_repo_from_template' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_repo_from_template' -s p -l profile -k -f -r -a '(render completions complete string repo from-template)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_repo_from_template' -s r -l region -k -f -r -a '(render completions complete string repo from-template)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_repo_from_template' -s o -l output-directory -k -f -r -a '(render completions complete string repo from-template)' -d 'target directory for new repo'
complete -c render -n '__fish_render_using_command __render_repo_from_template' -s f -l force -k -f -d 'overwrites existing directory if found.'
complete -c render -n '__fish_render_using_command __render_repo_from_template' -l skip-cleanup -k -f -d 'skips cleaning up tmpdir (on success or failure)'
complete -c render -n '__fish_render_using_command __render' -k -f -a blueprint -d 'Commands for interacting with Render Blueprints (render.yaml files).'
complete -c render -n '__fish_render_using_command __render_blueprint' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_blueprint' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_blueprint' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_blueprint' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_blueprint' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_blueprint' -s p -l profile -k -f -r -a '(render completions complete string blueprint)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_blueprint' -s r -l region -k -f -r -a '(render completions complete string blueprint)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_blueprint' -k -f -a launch -d 'Opens the browser-based Render Deploy for the `origin` upstream for the repo (for the current working directory) or a remote repo that you've specified.'
complete -c render -n '__fish_render_using_command __render_blueprint_launch' -k -f -a '(render completions complete string blueprint launch)'
complete -c render -n '__fish_render_using_command __render_blueprint_launch' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_blueprint_launch' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_blueprint_launch' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_blueprint_launch' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_blueprint_launch' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_blueprint_launch' -s p -l profile -k -f -r -a '(render completions complete string blueprint launch)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_blueprint_launch' -s r -l region -k -f -r -a '(render completions complete string blueprint launch)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_blueprint_launch' -s l -l link -k -f -d 'Prints out the Render Deploy URL rather than attempting to open it.'
complete -c render -n '__fish_render_using_command __render_blueprint_launch' -s r -l remote -k -f -r -a '(render completions complete string blueprint launch)' -d 'The remote to use'
complete -c render -n '__fish_render_using_command __render' -k -f -a buildpack -d 'Commands for using buildpacks in Render'
complete -c render -n '__fish_render_using_command __render_buildpack' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_buildpack' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_buildpack' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_buildpack' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_buildpack' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_buildpack' -s p -l profile -k -f -r -a '(render completions complete string buildpack)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_buildpack' -s r -l region -k -f -r -a '(render completions complete string buildpack)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_buildpack' -k -f -a init -d 'Initializes a repository for use with Heroku-style buildpacks within Render.'
complete -c render -n '__fish_render_using_command __render_buildpack_init' -k -f -a '(render completions complete string buildpack init)'
complete -c render -n '__fish_render_using_command __render_buildpack_init' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_buildpack_init' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_buildpack_init' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_buildpack_init' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_buildpack_init' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_buildpack_init' -s p -l profile -k -f -r -a '(render completions complete string buildpack init)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_buildpack_init' -s r -l region -k -f -r -a '(render completions complete string buildpack init)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_buildpack_init' -s f -l force -k -f -d 'overwrites existing files if found.'
complete -c render -n '__fish_render_using_command __render_buildpack_init' -l dir -k -f -r -a '(render completions complete string buildpack init)' -d 'the directory in which to run this command'
complete -c render -n '__fish_render_using_command __render_buildpack_init' -l skip-dockerfile -k -f -d 'don't emit a Dockerfile'
complete -c render -n '__fish_render_using_command __render_buildpack' -k -f -a remove -d 'Removes buildpacks from your .render-buildpacks.json file.'
complete -c render -n '__fish_render_using_command __render_buildpack_remove' -k -f -a '(render completions complete string buildpack remove)'
complete -c render -n '__fish_render_using_command __render_buildpack_remove' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_buildpack_remove' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_buildpack_remove' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_buildpack_remove' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_buildpack_remove' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_buildpack_remove' -s p -l profile -k -f -r -a '(render completions complete string buildpack remove)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_buildpack_remove' -s r -l region -k -f -r -a '(render completions complete string buildpack remove)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_buildpack_remove' -l dir -k -f -r -a '(render completions complete string buildpack remove)' -d 'the directory in which to run this command'
complete -c render -n '__fish_render_using_command __render_buildpack' -k -f -a add -d 'Adds buildpacks to your .render-buildpacks.json file.'
complete -c render -n '__fish_render_using_command __render_buildpack_add' -k -f -a '(render completions complete string buildpack add)'
complete -c render -n '__fish_render_using_command __render_buildpack_add' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_buildpack_add' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_buildpack_add' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_buildpack_add' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_buildpack_add' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_buildpack_add' -s p -l profile -k -f -r -a '(render completions complete string buildpack add)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_buildpack_add' -s r -l region -k -f -r -a '(render completions complete string buildpack add)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_buildpack_add' -l dir -k -f -r -a '(render completions complete string buildpack add)' -d 'the directory in which to run this command'
complete -c render -n '__fish_render_using_command __render' -k -f -a services -d 'Commands for observing and managing Render services.'
complete -c render -n '__fish_render_using_command __render_services' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_services' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_services' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_services' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_services' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_services' -s p -l profile -k -f -r -a '(render completions complete string services)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_services' -s r -l region -k -f -r -a '(render completions complete string services)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_services' -k -f -a show -d 'Fetches full details about a single service.'
complete -c render -n '__fish_render_using_command __render_services_show' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_services_show' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_services_show' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_services_show' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_services_show' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_services_show' -s p -l profile -k -f -r -a '(render completions complete string services show)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_services_show' -s r -l region -k -f -r -a '(render completions complete string services show)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_services_show' -l id -k -f -r -a '(render completions complete string services show)' -d 'the service ID (e.g. `srv-12345`)'
complete -c render -n '__fish_render_using_command __render_services' -k -f -a list -d 'Lists the services this user can see.'
complete -c render -n '__fish_render_using_command __render_services_list' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_services_list' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_services_list' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_services_list' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_services_list' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_services_list' -s p -l profile -k -f -r -a '(render completions complete string services list)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_services_list' -s r -l region -k -f -r -a '(render completions complete string services list)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_services_list' -l format -k -f -r -a '(render completions complete string services list)' -d 'interactive output format'
complete -c render -n '__fish_render_using_command __render_services_list' -l columns -k -f -r -a '(render completions complete string services list)' -d 'if --format table, the columns to show.'
complete -c render -n '__fish_render_using_command __render_services_list' -l name -k -f -r -a '(render completions complete string services list)' -d 'the name of a service to filter by'
complete -c render -n '__fish_render_using_command __render_services_list' -l type -k -f -r -a '(render completions complete string services list)' -d 'the service type to filter by'
complete -c render -n '__fish_render_using_command __render_services_list' -l env -k -f -r -a '(render completions complete string services list)' -d 'the runtime environment (docker, ruby, python, etc.)'
complete -c render -n '__fish_render_using_command __render_services_list' -l service-region -k -f -r -a '(render completions complete string services list)' -d 'the region in which a service is located'
complete -c render -n '__fish_render_using_command __render_services_list' -l ownerid -k -f -r -a '(render completions complete string services list)' -d 'the owner ID for the service'
complete -c render -n '__fish_render_using_command __render_services_list' -l created-before -k -f -r -a '(render completions complete string services list)' -d 'services created before (ISO8601)'
complete -c render -n '__fish_render_using_command __render_services_list' -l created-after -k -f -r -a '(render completions complete string services list)' -d 'services created after (ISO8601)'
complete -c render -n '__fish_render_using_command __render_services_list' -l updated-before -k -f -r -a '(render completions complete string services list)' -d 'services updated before (ISO8601)'
complete -c render -n '__fish_render_using_command __render_services_list' -l updated-after -k -f -r -a '(render completions complete string services list)' -d 'services updated after (ISO8601)'
complete -c render -n '__fish_render_using_command __render_services' -k -f -a tail -d 'Tails logs for a given service.'
complete -c render -n '__fish_render_using_command __render_services_tail' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_services_tail' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_services_tail' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_services_tail' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_services_tail' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_services_tail' -s p -l profile -k -f -r -a '(render completions complete string services tail)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_services_tail' -s r -l region -k -f -r -a '(render completions complete string services tail)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_services_tail' -l raw -k -f -d 'only prints the bare text of the log to stdout'
complete -c render -n '__fish_render_using_command __render_services_tail' -l json -k -f -d 'prints Render's log tail as JSON, one per message'
complete -c render -n '__fish_render_using_command __render_services_tail' -l deploy-id -k -f -r -a '(render completions complete string services tail)' -d 'filter logs to the requested deploy ID'
complete -c render -n '__fish_render_using_command __render_services_tail' -l id -k -f -r -a '(render completions complete string services tail)' -d 'the service ID whose logs to request'
complete -c render -n '__fish_render_using_command __render_services' -k -f -a ssh -d 'Opens a SSH session to a Render service.'
complete -c render -n '__fish_render_using_command __render_services_ssh' -k -f -a '(render completions complete string services ssh)'
complete -c render -n '__fish_render_using_command __render_services_ssh' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_services_ssh' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_services_ssh' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_services_ssh' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_services_ssh' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_services_ssh' -s p -l profile -k -f -r -a '(render completions complete string services ssh)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_services_ssh' -s r -l region -k -f -r -a '(render completions complete string services ssh)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_services_ssh' -l preserve-hosts -k -f -d 'Do not update ~/.ssh/known_hosts with Render public keys.'
complete -c render -n '__fish_render_using_command __render_services_ssh' -l id -k -f -r -a '(render completions complete string services ssh)' -d 'The service ID to access via SSH.'
complete -c render -n '__fish_render_using_command __render' -k -f -a deploys -d 'Commands for observing and managing deploys of Render services.'
complete -c render -n '__fish_render_using_command __render_deploys' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_deploys' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_deploys' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_deploys' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_deploys' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_deploys' -s p -l profile -k -f -r -a '(render completions complete string deploys)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_deploys' -s r -l region -k -f -r -a '(render completions complete string deploys)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_deploys' -k -f -a list -d 'Lists the deploys for a given service.'
complete -c render -n '__fish_render_using_command __render_deploys_list' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_deploys_list' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_deploys_list' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_deploys_list' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_deploys_list' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_deploys_list' -s p -l profile -k -f -r -a '(render completions complete string deploys list)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_deploys_list' -s r -l region -k -f -r -a '(render completions complete string deploys list)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_deploys_list' -l format -k -f -r -a '(render completions complete string deploys list)' -d 'interactive output format'
complete -c render -n '__fish_render_using_command __render_deploys_list' -l columns -k -f -r -a '(render completions complete string deploys list)' -d 'if --format table, the columns to show.'
complete -c render -n '__fish_render_using_command __render_deploys_list' -l service-id -k -f -r -a '(render completions complete string deploys list)' -d 'the service whose deploys to retrieve'
complete -c render -n '__fish_render_using_command __render_deploys_list' -l start-time -k -f -r -a '(render completions complete number deploys list)' -d 'start of the time range to return'
complete -c render -n '__fish_render_using_command __render_deploys_list' -l end-time -k -f -r -a '(render completions complete number deploys list)' -d 'end of the time range to return'
complete -c render -n '__fish_render_using_command __render' -k -f -a jobs -d 'Commands for observing and managing Render jobs.'
complete -c render -n '__fish_render_using_command __render_jobs' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_jobs' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_jobs' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_jobs' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_jobs' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_jobs' -s p -l profile -k -f -r -a '(render completions complete string jobs)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_jobs' -s r -l region -k -f -r -a '(render completions complete string jobs)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_jobs' -k -f -a list -d 'Lists the jobs this user can see.'
complete -c render -n '__fish_render_using_command __render_jobs_list' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_jobs_list' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_jobs_list' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_jobs_list' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_jobs_list' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_jobs_list' -s p -l profile -k -f -r -a '(render completions complete string jobs list)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_jobs_list' -s r -l region -k -f -r -a '(render completions complete string jobs list)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_jobs_list' -l format -k -f -r -a '(render completions complete string jobs list)' -d 'interactive output format'
complete -c render -n '__fish_render_using_command __render_jobs_list' -l columns -k -f -r -a '(render completions complete string jobs list)' -d 'if --format table, the columns to show.'
complete -c render -n '__fish_render_using_command __render_jobs_list' -l service-id -k -f -r -a '(render completions complete string jobs list)' -d 'the service whose deploys to retrieve'
complete -c render -n '__fish_render_using_command __render_jobs_list' -l status -k -f -r -a '(render completions complete string jobs list)' -d ''pending', 'running', 'succeeded', or 'failed''
complete -c render -n '__fish_render_using_command __render_jobs_list' -l created-before -k -f -r -a '(render completions complete string jobs list)' -d 'jobs created before (ISO8601)'
complete -c render -n '__fish_render_using_command __render_jobs_list' -l created-after -k -f -r -a '(render completions complete string jobs list)' -d 'jobs created after (ISO8601)'
complete -c render -n '__fish_render_using_command __render_jobs_list' -l started-before -k -f -r -a '(render completions complete string jobs list)' -d 'jobs started before (ISO8601)'
complete -c render -n '__fish_render_using_command __render_jobs_list' -l started-after -k -f -r -a '(render completions complete string jobs list)' -d 'jobs started after (ISO8601)'
complete -c render -n '__fish_render_using_command __render_jobs_list' -l finished-before -k -f -r -a '(render completions complete string jobs list)' -d 'jobs finished before (ISO8601)'
complete -c render -n '__fish_render_using_command __render_jobs_list' -l finished-after -k -f -r -a '(render completions complete string jobs list)' -d 'jobs finished after (ISO8601)'
complete -c render -n '__fish_render_using_command __render' -k -f -a custom-domains -d 'Commands for observing and managing custom domains.'
complete -c render -n '__fish_render_using_command __render_custom_domains' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_custom_domains' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_custom_domains' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_custom_domains' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_custom_domains' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_custom_domains' -s p -l profile -k -f -r -a '(render completions complete string custom-domains)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_custom_domains' -s r -l region -k -f -r -a '(render completions complete string custom-domains)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_custom_domains' -k -f -a list -d 'Lists the custom domains for a given service.'
complete -c render -n '__fish_render_using_command __render_custom_domains_list' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_custom_domains_list' -s v -l verbose -k -f -d 'Makes render-cli a lot more chatty.'
complete -c render -n '__fish_render_using_command __render_custom_domains_list' -l non-interactive -k -f -d 'Forces Render to act as though it's not in a TTY.'
complete -c render -n '__fish_render_using_command __render_custom_domains_list' -l pretty-json -k -f -d 'If in non-interactive mode, prints prettified JSON.'
complete -c render -n '__fish_render_using_command __render_custom_domains_list' -l json-record-per-line -k -f -d 'if emitting JSON, prints each JSON record as a separate line of stdout.'
complete -c render -n '__fish_render_using_command __render_custom_domains_list' -s p -l profile -k -f -r -a '(render completions complete string custom-domains list)' -d 'The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.'
complete -c render -n '__fish_render_using_command __render_custom_domains_list' -s r -l region -k -f -r -a '(render completions complete string custom-domains list)' -d 'The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.'
complete -c render -n '__fish_render_using_command __render_custom_domains_list' -l format -k -f -r -a '(render completions complete string custom-domains list)' -d 'interactive output format'
complete -c render -n '__fish_render_using_command __render_custom_domains_list' -l columns -k -f -r -a '(render completions complete string custom-domains list)' -d 'if --format table, the columns to show.'
complete -c render -n '__fish_render_using_command __render_custom_domains_list' -l service-id -k -f -r -a '(render completions complete string custom-domains list)' -d 'the service whose deploys to retrieve'
complete -c render -n '__fish_render_using_command __render_custom_domains_list' -l name -k -f -r -a '(render completions complete string custom-domains list)' -d 'domain names to filter by'
complete -c render -n '__fish_render_using_command __render_custom_domains_list' -l domain-type -k -f -r -a '(render completions complete string custom-domains list)' -d ''apex' or 'subdomain''
complete -c render -n '__fish_render_using_command __render_custom_domains_list' -l verification-status -k -f -r -a '(render completions complete string custom-domains list)' -d ''verified' or 'unverified''
complete -c render -n '__fish_render_using_command __render_custom_domains_list' -l created-before -k -f -r -a '(render completions complete string custom-domains list)' -d 'services created before (ISO8601)'
complete -c render -n '__fish_render_using_command __render_custom_domains_list' -l created-after -k -f -r -a '(render completions complete string custom-domains list)' -d 'services created after (ISO8601)'
complete -c render -n '__fish_render_using_command __render' -k -f -a completions -d 'Generate shell completions.'
complete -c render -n '__fish_render_using_command __render_completions' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_completions' -k -f -a bash -d 'Generate shell completions for bash.'
complete -c render -n '__fish_render_using_command __render_completions_bash' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_completions' -k -f -a fish -d 'Generate shell completions for fish.'
complete -c render -n '__fish_render_using_command __render_completions_fish' -s h -l help -x -k -f -d 'Show this help.'
complete -c render -n '__fish_render_using_command __render_completions' -k -f -a zsh -d 'Generate shell completions for zsh.'
complete -c render -n '__fish_render_using_command __render_completions_zsh' -s h -l help -x -k -f -d 'Show this help.'
#!/usr/bin/env zsh
# zsh completion support for render
autoload -U is-at-least
# shellcheck disable=SC2154
(( $+functions[__render_complete] )) ||
function __render_complete {
local name="$1"; shift
local action="$1"; shift
integer ret=1
local -a values
local expl lines
_tags "$name"
while _tags; do
if _requested "$name"; then
# shellcheck disable=SC2034
lines="$(render completions complete "${action}" "${@}")"
values=("${(ps:\n:)lines}")
if (( ${#values[@]} )); then
while _next_label "$name" expl "$action"; do
compadd -S '' "${expl[@]}" "${values[@]}"
done
fi
fi
done
}
# shellcheck disable=SC2154
(( $+functions[_render] )) ||
function _render() {
local state
function _commands() {
local -a commands
# shellcheck disable=SC2034
commands=(
'version:Shows the application version.'
'commands:Lists all commands and subcommands.'
'config:Commands for interacting with the render-cli configuration.'
'regions:Lists the Render regions that this version of the CLI knows about.'
'repo:Commands for managing Render projects/repos.'
'blueprint:Commands for interacting with Render Blueprints (render.yaml files).'
'buildpack:Commands for using buildpacks in Render'
'services:Commands for observing and managing Render services.'
'deploys:Commands for observing and managing deploys of Render services.'
'jobs:Commands for observing and managing Render jobs.'
'custom-domains:Commands for observing and managing custom domains.'
'completions:Generate shell completions.'
)
_describe 'command' commands
}
function _command_args() {
case "${words[1]}" in
version) _render_version ;;
commands) _render_commands ;;
config) _render_config ;;
regions) _render_regions ;;
repo) _render_repo ;;
blueprint) _render_blueprint ;;
buildpack) _render_buildpack ;;
services) _render_services ;;
deploys) _render_deploys ;;
jobs) _render_jobs ;;
custom-domains) _render_custom_domains ;;
completions) _render_completions ;;
esac
}
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'1:command:_commands' \
'*::sub command:->command_args'
case "$state" in
command_args) _command_args ;;
profileName-string) __render_complete profileName string ;;
regionName-string) __render_complete regionName string ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_version] )) ||
function _render_version() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string'
case "$state" in
profileName-string) __render_complete profileName string version ;;
regionName-string) __render_complete regionName string version ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_commands] )) ||
function _render_commands() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string'
case "$state" in
profileName-string) __render_complete profileName string commands ;;
regionName-string) __render_complete regionName string commands ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_config] )) ||
function _render_config() {
function _commands() {
local -a commands
# shellcheck disable=SC2034
commands=(
'schema:Displays the render-cli config schema (YAML; JSON Schema format).'
'init:Interactively creates a Render CLI config file.'
)
_describe 'command' commands
}
function _command_args() {
case "${words[1]}" in
schema) _render_config_schema ;;
init) _render_config_init ;;
esac
}
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'1:command:_commands' \
'*::sub command:->command_args'
case "$state" in
command_args) _command_args ;;
profileName-string) __render_complete profileName string config ;;
regionName-string) __render_complete regionName string config ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_config_schema] )) ||
function _render_config_schema() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string'
case "$state" in
profileName-string) __render_complete profileName string config schema ;;
regionName-string) __render_complete regionName string config schema ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_config_init] )) ||
function _render_config_init() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'(-h --help -f --force)'{-f,--force}'[overwrites existing files if found.]'
case "$state" in
profileName-string) __render_complete profileName string config init ;;
regionName-string) __render_complete regionName string config init ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_regions] )) ||
function _render_regions() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string'
case "$state" in
profileName-string) __render_complete profileName string regions ;;
regionName-string) __render_complete regionName string regions ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_repo] )) ||
function _render_repo() {
function _commands() {
local -a commands
# shellcheck disable=SC2034
commands=(
'from-template:Initializes a new project repository from a template.'
)
_describe 'command' commands
}
function _command_args() {
case "${words[1]}" in
from-template) _render_repo_from_template ;;
esac
}
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'1:command:_commands' \
'*::sub command:->command_args'
case "$state" in
command_args) _command_args ;;
profileName-string) __render_complete profileName string repo ;;
regionName-string) __render_complete regionName string repo ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_repo_from_template] )) ||
function _render_repo_from_template() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'(-h --help -o --output-directory)'{-o,--output-directory}'[target directory for new repo]:path:->path-string' \
'(-h --help -f --force)'{-f,--force}'[overwrites existing directory if found.]' \
'(-h --help --skip-cleanup)'{--skip-cleanup}'[skips cleaning up tmpdir (on success or failure)]'
case "$state" in
profileName-string) __render_complete profileName string repo from-template ;;
regionName-string) __render_complete regionName string repo from-template ;;
path-string) __render_complete path string repo from-template ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_blueprint] )) ||
function _render_blueprint() {
function _commands() {
local -a commands
# shellcheck disable=SC2034
commands=(
'launch:Opens the browser-based Render Deploy for the `origin` upstream for the repo (for the current working directory) or a remote repo that you'"'"'ve specified.'
)
_describe 'command' commands
}
function _command_args() {
case "${words[1]}" in
launch) _render_blueprint_launch ;;
esac
}
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'1:command:_commands' \
'*::sub command:->command_args'
case "$state" in
command_args) _command_args ;;
profileName-string) __render_complete profileName string blueprint ;;
regionName-string) __render_complete regionName string blueprint ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_blueprint_launch] )) ||
function _render_blueprint_launch() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'(-h --help -l --link)'{-l,--link}'[Prints out the Render Deploy URL rather than attempting to open it.]' \
'(-h --help -r --remote)'{-r,--remote}'[The remote to use]:remoteName:->remoteName-string'
case "$state" in
profileName-string) __render_complete profileName string blueprint launch ;;
regionName-string) __render_complete regionName string blueprint launch ;;
remoteName-string) __render_complete remoteName string blueprint launch ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_buildpack] )) ||
function _render_buildpack() {
function _commands() {
local -a commands
# shellcheck disable=SC2034
commands=(
'init:Initializes a repository for use with Heroku-style buildpacks within Render.'
'remove:Removes buildpacks from your .render-buildpacks.json file.'
'add:Adds buildpacks to your .render-buildpacks.json file.'
)
_describe 'command' commands
}
function _command_args() {
case "${words[1]}" in
init) _render_buildpack_init ;;
remove) _render_buildpack_remove ;;
add) _render_buildpack_add ;;
esac
}
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'1:command:_commands' \
'*::sub command:->command_args'
case "$state" in
command_args) _command_args ;;
profileName-string) __render_complete profileName string buildpack ;;
regionName-string) __render_complete regionName string buildpack ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_buildpack_init] )) ||
function _render_buildpack_init() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'(-h --help -f --force)'{-f,--force}'[overwrites existing files if found.]' \
'(-h --help --dir)'{--dir}'[the directory in which to run this command]:string:->string-string' \
'(-h --help --skip-dockerfile)'{--skip-dockerfile}'[don'"'"'t emit a Dockerfile]'
case "$state" in
profileName-string) __render_complete profileName string buildpack init ;;
regionName-string) __render_complete regionName string buildpack init ;;
string-string) __render_complete string string buildpack init ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_buildpack_remove] )) ||
function _render_buildpack_remove() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'(-h --help --dir)'{--dir}'[the directory in which to run this command]:string:->string-string'
case "$state" in
profileName-string) __render_complete profileName string buildpack remove ;;
regionName-string) __render_complete regionName string buildpack remove ;;
string-string) __render_complete string string buildpack remove ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_buildpack_add] )) ||
function _render_buildpack_add() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'(-h --help --dir)'{--dir}'[the directory in which to run this command]:string:->string-string'
case "$state" in
profileName-string) __render_complete profileName string buildpack add ;;
regionName-string) __render_complete regionName string buildpack add ;;
string-string) __render_complete string string buildpack add ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_services] )) ||
function _render_services() {
function _commands() {
local -a commands
# shellcheck disable=SC2034
commands=(
'show:Fetches full details about a single service.'
'list:Lists the services this user can see.'
'tail:Tails logs for a given service.'
'ssh:Opens a SSH session to a Render service.'
)
_describe 'command' commands
}
function _command_args() {
case "${words[1]}" in
show) _render_services_show ;;
list) _render_services_list ;;
tail) _render_services_tail ;;
ssh) _render_services_ssh ;;
esac
}
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'1:command:_commands' \
'*::sub command:->command_args'
case "$state" in
command_args) _command_args ;;
profileName-string) __render_complete profileName string services ;;
regionName-string) __render_complete regionName string services ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_services_show] )) ||
function _render_services_show() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'(-h --help --id)'{--id}'[the service ID (e.g. `srv-12345`)]:serviceId:->serviceId-string'
case "$state" in
profileName-string) __render_complete profileName string services show ;;
regionName-string) __render_complete regionName string services show ;;
serviceId-string) __render_complete serviceId string services show ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_services_list] )) ||
function _render_services_list() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'(-h --help --format)'{--format}'[interactive output format]:fmt:->fmt-string' \
'(-h --help --columns)'{--columns}'[if --format table, the columns to show.]:cols:->cols-string' \
'(-h --help)'{*--name}'[the name of a service to filter by]:name:->name-string' \
'(-h --help)'{*--type}'[the service type to filter by]:type:->type-string' \
'(-h --help)'{*--env}'[the runtime environment (docker, ruby, python, etc.)]:env:->env-string' \
'(-h --help)'{*--service-region}'[the region in which a service is located]:svc:->svc-string' \
'(-h --help)'{*--ownerid}'[the owner ID for the service]:ownerId:->ownerId-string' \
'(-h --help --created-before)'{--created-before}'[services created before (ISO8601)]:datetime:->datetime-string' \
'(-h --help --created-after)'{--created-after}'[services created after (ISO8601)]:datetime:->datetime-string' \
'(-h --help --updated-before)'{--updated-before}'[services updated before (ISO8601)]:datetime:->datetime-string' \
'(-h --help --updated-after)'{--updated-after}'[services updated after (ISO8601)]:datetime:->datetime-string'
case "$state" in
profileName-string) __render_complete profileName string services list ;;
regionName-string) __render_complete regionName string services list ;;
fmt-string) __render_complete fmt string services list ;;
cols-string) __render_complete cols string services list ;;
name-string) __render_complete name string services list ;;
type-string) __render_complete type string services list ;;
env-string) __render_complete env string services list ;;
svc-string) __render_complete svc string services list ;;
ownerId-string) __render_complete ownerId string services list ;;
datetime-string) __render_complete datetime string services list ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_services_tail] )) ||
function _render_services_tail() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'(-h --help --raw)'{--raw}'[only prints the bare text of the log to stdout]' \
'(-h --help --raw --json)'{--json}'[prints Render'"'"'s log tail as JSON, one per message]' \
'(-h --help)'{*--deploy-id}'[filter logs to the requested deploy ID]:deployId:->deployId-string' \
'(-h --help --id)'{--id}'[the service ID whose logs to request]:serviceId:->serviceId-string'
case "$state" in
profileName-string) __render_complete profileName string services tail ;;
regionName-string) __render_complete regionName string services tail ;;
deployId-string) __render_complete deployId string services tail ;;
serviceId-string) __render_complete serviceId string services tail ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_services_ssh] )) ||
function _render_services_ssh() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'(-h --help --preserve-hosts)'{--preserve-hosts}'[Do not update ~/.ssh/known_hosts with Render public keys.]' \
'(-h --help --id)'{--id}'[The service ID to access via SSH.]:serviceId:->serviceId-string'
case "$state" in
profileName-string) __render_complete profileName string services ssh ;;
regionName-string) __render_complete regionName string services ssh ;;
serviceId-string) __render_complete serviceId string services ssh ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_deploys] )) ||
function _render_deploys() {
function _commands() {
local -a commands
# shellcheck disable=SC2034
commands=(
'list:Lists the deploys for a given service.'
)
_describe 'command' commands
}
function _command_args() {
case "${words[1]}" in
list) _render_deploys_list ;;
esac
}
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'1:command:_commands' \
'*::sub command:->command_args'
case "$state" in
command_args) _command_args ;;
profileName-string) __render_complete profileName string deploys ;;
regionName-string) __render_complete regionName string deploys ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_deploys_list] )) ||
function _render_deploys_list() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'(-h --help --format)'{--format}'[interactive output format]:fmt:->fmt-string' \
'(-h --help --columns)'{--columns}'[if --format table, the columns to show.]:cols:->cols-string' \
'(-h --help --service-id)'{--service-id}'[the service whose deploys to retrieve]:serviceId:->serviceId-string' \
'(-h --help --start-time)'{--start-time}'[start of the time range to return]:timestamp:->timestamp-number' \
'(-h --help --end-time)'{--end-time}'[end of the time range to return]:timestamp:->timestamp-number'
case "$state" in
profileName-string) __render_complete profileName string deploys list ;;
regionName-string) __render_complete regionName string deploys list ;;
fmt-string) __render_complete fmt string deploys list ;;
cols-string) __render_complete cols string deploys list ;;
serviceId-string) __render_complete serviceId string deploys list ;;
timestamp-number) __render_complete timestamp number deploys list ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_jobs] )) ||
function _render_jobs() {
function _commands() {
local -a commands
# shellcheck disable=SC2034
commands=(
'list:Lists the jobs this user can see.'
)
_describe 'command' commands
}
function _command_args() {
case "${words[1]}" in
list) _render_jobs_list ;;
esac
}
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'1:command:_commands' \
'*::sub command:->command_args'
case "$state" in
command_args) _command_args ;;
profileName-string) __render_complete profileName string jobs ;;
regionName-string) __render_complete regionName string jobs ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_jobs_list] )) ||
function _render_jobs_list() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'(-h --help --format)'{--format}'[interactive output format]:fmt:->fmt-string' \
'(-h --help --columns)'{--columns}'[if --format table, the columns to show.]:cols:->cols-string' \
'(-h --help --service-id)'{--service-id}'[the service whose deploys to retrieve]:serviceId:->serviceId-string' \
'(-h --help)'{*--status}'['"'"'pending'"'"', '"'"'running'"'"', '"'"'succeeded'"'"', or '"'"'failed'"'"']:status:->status-string' \
'(-h --help --created-before)'{--created-before}'[jobs created before (ISO8601)]:datetime:->datetime-string' \
'(-h --help --created-after)'{--created-after}'[jobs created after (ISO8601)]:datetime:->datetime-string' \
'(-h --help --started-before)'{--started-before}'[jobs started before (ISO8601)]:datetime:->datetime-string' \
'(-h --help --started-after)'{--started-after}'[jobs started after (ISO8601)]:datetime:->datetime-string' \
'(-h --help --finished-before)'{--finished-before}'[jobs finished before (ISO8601)]:datetime:->datetime-string' \
'(-h --help --finished-after)'{--finished-after}'[jobs finished after (ISO8601)]:datetime:->datetime-string'
case "$state" in
profileName-string) __render_complete profileName string jobs list ;;
regionName-string) __render_complete regionName string jobs list ;;
fmt-string) __render_complete fmt string jobs list ;;
cols-string) __render_complete cols string jobs list ;;
serviceId-string) __render_complete serviceId string jobs list ;;
status-string) __render_complete status string jobs list ;;
datetime-string) __render_complete datetime string jobs list ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_custom_domains] )) ||
function _render_custom_domains() {
function _commands() {
local -a commands
# shellcheck disable=SC2034
commands=(
'list:Lists the custom domains for a given service.'
)
_describe 'command' commands
}
function _command_args() {
case "${words[1]}" in
list) _render_custom_domains_list ;;
esac
}
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'1:command:_commands' \
'*::sub command:->command_args'
case "$state" in
command_args) _command_args ;;
profileName-string) __render_complete profileName string custom-domains ;;
regionName-string) __render_complete regionName string custom-domains ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_custom_domains_list] )) ||
function _render_custom_domains_list() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'(-h --help -v --verbose)'{-v,--verbose}'[Makes render-cli a lot more chatty.]' \
'(-h --help --non-interactive)'{--non-interactive}'[Forces Render to act as though it'"'"'s not in a TTY.]' \
'(-h --help --pretty-json)'{--pretty-json}'[If in non-interactive mode, prints prettified JSON.]' \
'(-h --help --pretty-json --json-record-per-line)'{--json-record-per-line}'[if emitting JSON, prints each JSON record as a separate line of stdout.]' \
'(-h --help -p --profile)'{-p,--profile}'[The Render profile to use for this invocation. Overrides RENDERCLI_PROFILE.]:profileName:->profileName-string' \
'(-h --help -r --region)'{-r,--region}'[The Render region to use for this invocation; always accepted but not always relevant. Overrides RENDERCLI_REGION.]:regionName:->regionName-string' \
'(-h --help --format)'{--format}'[interactive output format]:fmt:->fmt-string' \
'(-h --help --columns)'{--columns}'[if --format table, the columns to show.]:cols:->cols-string' \
'(-h --help --service-id)'{--service-id}'[the service whose deploys to retrieve]:serviceId:->serviceId-string' \
'(-h --help)'{*--name}'[domain names to filter by]:name:->name-string' \
'(-h --help)'{*--domain-type}'['"'"'apex'"'"' or '"'"'subdomain'"'"']:name:->name-string' \
'(-h --help)'{*--verification-status}'['"'"'verified'"'"' or '"'"'unverified'"'"']:name:->name-string' \
'(-h --help --created-before)'{--created-before}'[services created before (ISO8601)]:datetime:->datetime-string' \
'(-h --help --created-after)'{--created-after}'[services created after (ISO8601)]:datetime:->datetime-string'
case "$state" in
profileName-string) __render_complete profileName string custom-domains list ;;
regionName-string) __render_complete regionName string custom-domains list ;;
fmt-string) __render_complete fmt string custom-domains list ;;
cols-string) __render_complete cols string custom-domains list ;;
serviceId-string) __render_complete serviceId string custom-domains list ;;
name-string) __render_complete name string custom-domains list ;;
datetime-string) __render_complete datetime string custom-domains list ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_completions] )) ||
function _render_completions() {
function _commands() {
local -a commands
# shellcheck disable=SC2034
commands=(
'bash:Generate shell completions for bash.'
'fish:Generate shell completions for fish.'
'zsh:Generate shell completions for zsh.'
)
_describe 'command' commands
}
function _command_args() {
case "${words[1]}" in
bash) _render_completions_bash ;;
fish) _render_completions_fish ;;
zsh) _render_completions_zsh ;;
esac
}
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]' \
'1:command:_commands' \
'*::sub command:->command_args'
case "$state" in
command_args) _command_args ;;
esac
}
# shellcheck disable=SC2154
(( $+functions[_render_completions_bash] )) ||
function _render_completions_bash() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]'
}
# shellcheck disable=SC2154
(( $+functions[_render_completions_fish] )) ||
function _render_completions_fish() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]'
}
# shellcheck disable=SC2154
(( $+functions[_render_completions_zsh] )) ||
function _render_completions_zsh() {
_arguments -w -s -S -C \
'(- *)'{-h,--help}'[Show this help.]'
}
# _render "${@}"
compdef _render render
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment