Merge pull request #9444 from muzimuzhi/docs/unify-markup

This commit is contained in:
Andy Feller 2024-08-09 23:09:57 -04:00 committed by GitHub
commit 3ca70905b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,13 +45,15 @@ func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Comman
cmd := &cobra.Command{
Use: "view [<repository>]",
Short: "View a repository",
Long: `Display the description and the README of a GitHub repository.
Long: heredoc.Docf(`
Display the description and the README of a GitHub repository.
With no argument, the repository for the current directory is displayed.
With no argument, the repository for the current directory is displayed.
With '--web', open the repository in a web browser instead.
With %[1]s--web%[1]s, open the repository in a web browser instead.
With '--branch', view a specific branch of the repository.`,
With %[1]s--branch%[1]s, view a specific branch of the repository.
`, "`"),
Args: cobra.MaximumNArgs(1),
RunE: func(c *cobra.Command, args []string) error {
if len(args) > 0 {