Merge pull request #9444 from muzimuzhi/docs/unify-markup
This commit is contained in:
commit
3ca70905b2
1 changed files with 6 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue