cline doctor command: terminal shift enter support + auto updates (#6883)

* terminal shift enter support

* not needed

* detecting windows

* removing enhancedkeyboard

* removing enhanced keyboard

* ghostty

* proper ghostty support

* docs for posterity

* better logging

* removing md

* doctor command

* adding arguments for sync/async for doctor and keyboard setup - and moved keyboard setup to doctor command

* doctor help

* cleaning up logging and making things more explicit

* language and positioning
This commit is contained in:
pashpashpash
2025-10-20 16:47:07 -07:00
committed by GitHub
parent 89bf81f7f6
commit 9679917532
5 changed files with 792 additions and 14 deletions
+3 -9
View File
@@ -99,12 +99,7 @@ see the manual page: man cline`,
// Check if user has credentials configured
if !isUserReadyToUse(ctx, instanceAddress) {
// Create renderer for welcome messages
renderer := display.NewRenderer(global.Config.OutputFormat)
markdown := "## hey there! looks like you're new here. let's get you set up"
rendered := renderer.RenderMarkdown(markdown)
fmt.Printf("\n%s\n\n", rendered)
fmt.Printf("\n\033[90mHey there! Looks like you're new here. Let's get you set up\033[0m\n\n")
if err := auth.HandleAuthMenuNoArgs(ctx); err != nil {
// Check if user cancelled - exit cleanly
@@ -119,9 +114,7 @@ see the manual page: man cline`,
return fmt.Errorf("credentials still not configured - please run 'cline auth' to complete setup")
}
markdown = "## setup complete, you can now use the cline cli"
rendered = renderer.RenderMarkdown(markdown)
fmt.Printf("\n%s\n\n", rendered)
fmt.Printf("\n\033[90mSetup complete, you can now use the Cline CLI\033[0m\n\n")
}
} else {
// User specified --address flag, use that
@@ -187,6 +180,7 @@ see the manual page: man cline`,
rootCmd.AddCommand(cli.NewVersionCommand())
rootCmd.AddCommand(cli.NewAuthCommand())
rootCmd.AddCommand(cli.NewLogsCommand())
rootCmd.AddCommand(cli.NewDoctorCommand())
if err := rootCmd.ExecuteContext(context.Background()); err != nil {
os.Exit(1)