devel/crush: OpenBSD patches
This commit is contained in:
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user