devel/crush: OpenBSD patches

This commit is contained in:
c0dev0id
2026-07-08 11:31:31 +02:00
parent a6b68a0b99
commit 844067ee41
9 changed files with 68 additions and 32 deletions

View File

@@ -1,6 +1,7 @@
--- internal/cmd/login.go
Index: internal/cmd/login.go
--- internal/cmd/login.go.orig
+++ internal/cmd/login.go
@@ -6,12 +6,14 @@
@@ -6,12 +6,14 @@ import (
"fmt"
"os"
"os/signal"
@@ -15,7 +16,7 @@
"github.com/charmbracelet/crush/internal/oauth/copilot"
"github.com/charmbracelet/crush/internal/oauth/hyper"
"github.com/charmbracelet/x/ansi"
@@ -25,11 +27,14 @@
@@ -25,11 +27,14 @@ var loginCmd = &cobra.Command{
Short: "Login Crush to a platform",
Long: `Login Crush to a specified platform.
The platform should be provided as an argument.
@@ -31,7 +32,7 @@
# Authenticate with GitHub Copilot
crush login copilot
@@ -38,6 +43,8 @@
@@ -38,6 +43,8 @@ crush login -f copilot
`,
ValidArgs: []cobra.Completion{
"hyper",
@@ -40,7 +41,7 @@
"copilot",
"github",
"github-copilot",
@@ -64,6 +71,8 @@
@@ -64,6 +71,8 @@ crush login -f copilot
switch provider {
case "hyper":
return loginHyper(c, ws.ID, force)
@@ -49,7 +50,7 @@
case "copilot", "github", "github-copilot":
return loginCopilot(c, ws.ID, force)
default:
@@ -140,6 +149,68 @@
@@ -140,6 +149,68 @@ func loginHyper(c *client.Client, wsID string, force b
fmt.Println()
fmt.Println("You're now authenticated with Hyper!")