Skip to content

"switch completion" command does not work #46

@bygui86

Description

@bygui86

Hi guys, thank you for this great tool.
Unfortunately there is a bug in the command shell completion.

Here what happens:

$ switch completion
Error: context with name "completion" not found

I installed kubeswitch using homebrew, then sourced the switch.sh as described in the docs:

$ INSTALLATION_PATH=$(brew --prefix switch) && source $INSTALLATION_PATH/switch.sh

Here the version:

$ switch -v
Switch:
		version     : v0.7.1
		build date  : 2022-06-22
		go version  : go1.18.3
		go compiler : gc
		platform    : darwin/amd64

Here shell info:

$ zsh --version
zsh 5.9 (x86_64-apple-darwin21.3.0)

It would be great to have this command working, so instead of being forced to manually download an additional file (scripts/_switch.bash) we could source that directly in .zshrc/.bashrc/.bash_profile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions