Skip to content

Commit 092c6a9

Browse files
Add a barebones docs command (#241)
1 parent a9a4cdd commit 092c6a9

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

cmd/docs.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package cmd
2+
3+
import (
4+
"github.com/spf13/cobra"
5+
6+
"github.com/render-oss/cli/pkg/dashboard"
7+
)
8+
9+
var docsCmd = &cobra.Command{
10+
Use: "docs",
11+
Short: "Open the Render docs in your browser",
12+
RunE: func(cmd *cobra.Command, args []string) error {
13+
return dashboard.Open("https://render.com/docs")
14+
},
15+
}
16+
17+
func init() {
18+
rootCmd.AddCommand(docsCmd)
19+
}

0 commit comments

Comments
 (0)