Documentation
¶
Index ¶
- Variables
- func Execute() error
- func GetCmdTelemetryData(cmd *cobra.Command, flags []string) map[string]interface{}
- func PostRun(cmd *cobra.Command, cmdErr error, telemetryService telemetry.TelemetryService, ...)
- func PreRun(rootCmd *cobra.Command, args []string, telemetryEnabled bool, clientId string, ...) (telemetry.TelemetryService, *cobra.Command, []string, bool, error)
- func RunInitialScreenFlow(cmd *cobra.Command, args []string) error
- func SetupRootCommand(cmd *cobra.Command)
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 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 ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.