Skip to content

Completion generation doesn't work and has a dead link for reference #274

@Solipsistmonkey

Description

@Solipsistmonkey

Describe the bug
Following these instructions I ran into an error (first screenshot below). I half expected it to not work since I use Fish and only bash and zsh are listed in the documentation. Tested with zsh and bash as well and found that it wasn't a fish specific issue (second screenshot)

To Reproduce
See Above

Expected behavior
With the wording of the command, scout install-completion-script, I expect that the cli would detect which shell I'm using and, in my case, create the file $HOME/.config/fish/completions/scout.fish with the completions in there. Or, if I was using bash/zsh, append the appropriate completions to $HOME/.bashrc or $HOME/.zshrc.

Current behavior
Like the screenshots below, the cli errored out and gave a bad url.

Screenshots

Image Image

Additional context
When I went to apple/swift-argument-parser repo I found this and tried out scout --generate-completion-script fish and it worked! Also tested for bash and zsh which also work fine (for generation, not installation).

So I went ahead and ran scout --generate-completion-script fish > $fish_complete_path[1]/scout.fish and it worked brilliantly.

Image

And apparently bash, fish and zsh are the extent of the generate-completion system. I don't use xonsh, but figured I'd try it.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions