Skip to content

Improving shell completions: hide certain commands #789

@fingolfin

Description

First off, thanks to @BoostCookie for adding shell completions in PR #753. (By the way I think this means #151 can be closed now?)

One very minor nitpick: if I enter juliaup then press TAB twice, I get this:

~$ juliaup
-h                                    status
-V                                    gc
--help                                config
--version                             api
default                               46029ef5-0b73-4a71-bff3-d0d05de42aac
add                                   0cf1528f-0b15-46b1-9ac9-e5bf5ccccbcf
link                                  info
list                                  self
override                              completions
update                                4c79c12db1d34bbbab1f6c6f838f423f
remove                                help

Note the weird UUIds / hex codes -- I think these are internal "commands", an implementation details -- I wonder if there is a way to hide them from the user?

I also think that -h, -V, --help, --version should be hidden -- that's also how shell completion for git and cargo is done (which both support --help and --version)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions