Thanks to visit codestin.com
Credit goes to github.com

Skip to content

No space after tab-completing a gh command in bash #671

@mislav

Description

@mislav

Describe the bug

Bash shell completions should add a space after completing a command name.

Steps to reproduce the behavior

  1. If not already, set up completions according to gh help completion
  2. Type gh pr ch
  3. Press Tab

Expected vs actual behavior

The word ch expands to checkout without a space after, but I think users would prefer to have a space automatically added after the word so they can easily add an argument. For comparison, git com Tab expands to commit with a space added after.

Ref. spf13/cobra#371

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingp3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions