Pudong Zheng 352393456b gitpod-cli: add analytics
Co-authored-by: Andrea Falzetti <andrea@gitpod.io>
2023-02-08 17:43:46 +01:00

25 lines
584 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"
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)
}