Skip to content

Conversation

@marckhouzam
Copy link
Contributor

Description of the Change

Cherry-pick of #3627

Manual testing

$ cat ~/cf.zsh
# zsh completion for Cloud Foundry CLI

_cf-cli() {
    # All arguments except the first one
    args=("${COMP_WORDS[@]:1:$COMP_CWORD}")
    # Only split on newlines
    local IFS=$'\n'
    # Call completion (note that the first element of COMP_WORDS is
    # the executable itself)
    COMPREPLY=($(GO_FLAGS_COMPLETION=1 ${COMP_WORDS[0]} "${args[@]}"))
    return 0
}
autoload -U +X bashcompinit && bashcompinit
complete -F _cf-cli cf
$ source ~/cf.zsh

$ out/cf set-space-role [email protected] cli-org SP1 Space
SpaceAuditor    SpaceDeveloper  SpaceManager    SpaceSupporter

@marckhouzam marckhouzam changed the title [Cherry-pick/[main] Fix missing completion for 'SpaceSupporter' [Cherry-pick][main] Fix missing completion for 'SpaceSupporter' Nov 18, 2025
@marckhouzam marckhouzam force-pushed the marck/cherrypick/fixSpaceRoleComp branch 3 times, most recently from a5f75be to ae4291a Compare November 20, 2025 15:51
@marckhouzam marckhouzam force-pushed the marck/cherrypick/fixSpaceRoleComp branch from ae4291a to a83fdea Compare December 10, 2025 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant