cmd

package
v0.50.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 56 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DocsCmd = &cobra.Command{
	Use:     "docs",
	Short:   "Opens the Daytona documentation in your default browser.",
	Args:    cobra.NoArgs,
	Aliases: []string{"documentation", "doc"},
	RunE: func(cmd *cobra.Command, args []string) error {
		output := views.GetBoldedInfoMessage("Opening the Daytona documentation in your default browser. If opening fails, you can go to " + linkStyle.Render(docsURL) + " manually.")
		fmt.Println(output)
		return browser.OpenURL(docsURL)
	},
}

Functions

func Execute

func Execute() error

func GetCmdTelemetryData added in v0.35.0

func GetCmdTelemetryData(cmd *cobra.Command, flags []string) map[string]interface{}

func PostRun added in v0.35.0

func PostRun(cmd *cobra.Command, cmdErr error, telemetryService telemetry.TelemetryService, clientId string, startTime time.Time, endTime time.Time, flags []string)

func PreRun added in v0.35.0

func PreRun(rootCmd *cobra.Command, args []string, telemetryEnabled bool, clientId string, startTime time.Time) (telemetry.TelemetryService, *cobra.Command, []string, bool, error)

func RunInitialScreenFlow added in v0.15.0

func RunInitialScreenFlow(cmd *cobra.Command, args []string) error

func SetupRootCommand added in v0.15.0

func SetupRootCommand(cmd *cobra.Command)

Types

type GitHubRelease added in v0.50.0

type GitHubRelease struct {
	TagName   string `json:"tag_name"`
	Changelog string `json:"body"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL