Skip to content

Commit ff71380

Browse files
Update internal/cmd/doc.go
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent efef308 commit ff71380

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

internal/cmd/doc.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ func initDocCommand(openURL func(string) error) *cobra.Command {
1414
Aliases: []string{"docs"},
1515
Short: "Open lets documentation in browser",
1616
Args: cobra.NoArgs,
17-
RunE: func(cmd *cobra.Command, args []string) error {
18-
if err := openURL(letsDocsURL); err != nil {
17+
if err := openURL(letsDocsURL); err != nil {
1918
return fmt.Errorf("can not open documentation: %w", err)
2019
}
2120

21+
fmt.Fprintf(cmd.OutOrStdout(), "Opening %s\n", letsDocsURL)
22+
23+
return nil
2224
return nil
2325
},
2426
}

0 commit comments

Comments
 (0)