Skip to content

Add cobra command suggestions to command-line parsing #496

Closed

Description

@beeradb

What happened (or feature request):

When doing commands for ddev we initially decided to stay away from the command alias features that cobra provides due to not wanting to confuse people with multiple aliases for each command. This was done in an effort to keep things simple, and not end up with a bunch of aliases which people would get used to and we'd have to support ad-infinitum.

What you expected to happen:

I just came across the cobra feature for suggestions, which is similar to aliases but merely provides a command suggestion if you use it. We should consider implementing this as we could still give command hints for similar terms (delete, rm, remove, etc.) but push people to use the canonical command, rather than supporting multiple versions of the same command.

Activity

  1. changed the title [-]Add command suggestions[/-] [+]Add cobra command suggestions to command-line parsing[/+] on Oct 13, 2017
  2. rfay commented on May 8, 2019

    @rfay
    Member

    Cobra automatically provides suggestions, so we've had this for a long time.

  3. added 20 commits that reference this issue on Nov 3, 2026
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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions