mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
25 lines
597 B
Go
25 lines
597 B
Go
// Copyright (c) 2023 Gitpod GmbH. All rights reserved.
|
|
// Licensed under the GNU Affero General Public License (AGPL).
|
|
// See License.AGPL.txt in the project root for license information.
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// URL of the Gitpod documentation
|
|
const DocsUrl = "https://www.gitpod.io/docs/introduction"
|
|
|
|
var docsCmd = &cobra.Command{
|
|
Use: "docs",
|
|
Short: "Open Gitpod Documentation in default browser",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
return openPreview("GP_EXTERNAL_BROWSER", DocsUrl)
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(docsCmd)
|
|
}
|