Skip to content

Specify that you can open a directory using the browse command #8524

@samueldurantes

Description

@samueldurantes

Describe the feature or problem you’d like to solve

$ gh browse main.go:312
#=> Open main.go at line 312
$ gh browse main.go --branch bug-fix
#=> Open main.go with the repository at head of bug-fix branch
$ gh browse main.go --commit=77507cd94ccafcf568f8560cfecde965fcfa63
#=> Open main.go with the repository at commit 775007cd

It's not explicitly clear in the provided examples whether the "browse" command can be used to open a directory. The given illustration suggests that it's possible to open only a file, rather than a directory.

Proposed solution

Add another help message to the browse command directly specifying that you can open a directory from your repository in your remote repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIgh-browserelating to the gh browse command

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions