Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/gitpod-cli/cmd/docs.go
2498 views
1
// Copyright (c) 2023 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
package cmd
6
7
import (
8
"github.com/spf13/cobra"
9
)
10
11
// URL of the Gitpod documentation
12
const DocsUrl = "https://www.gitpod.io/docs/introduction"
13
14
var docsCmd = &cobra.Command{
15
Use: "docs",
16
Short: "Open Gitpod Documentation in default browser",
17
RunE: func(cmd *cobra.Command, args []string) error {
18
return openPreview("GP_EXTERNAL_BROWSER", DocsUrl)
19
},
20
}
21
22
func init() {
23
rootCmd.AddCommand(docsCmd)
24
}
25
26