@@ -3,7 +3,6 @@ package cmd
33import (
44 "fmt"
55 "os"
6- "strings"
76
87 "github.com/fatih/color"
98 "github.com/spf13/cobra"
@@ -22,46 +21,11 @@ var version = "dev"
2221
2322// generateHeader creates a nice header box with proper Unicode box drawing
2423func generateHeader () string {
25- lines := []string {
26- "🚀 linear-cli" ,
27- "Linear CLI - Built with ❤️" ,
28- }
29-
30- // Find the longest line
31- maxLen := 0
32- for _ , line := range lines {
33- if len (line ) > maxLen {
34- maxLen = len (line )
35- }
36- }
37-
38- // Add padding
39- width := maxLen + 8
40-
41- // Build the box
42- var result strings.Builder
43-
44- // Top border
45- result .WriteString ("┌" )
46- result .WriteString (strings .Repeat ("─" , width ))
47- result .WriteString ("┐\n " )
48-
49- // Content lines
50- for _ , line := range lines {
51- padding := (width - len (line )) / 2
52- result .WriteString ("│" )
53- result .WriteString (strings .Repeat (" " , padding ))
54- result .WriteString (line )
55- result .WriteString (strings .Repeat (" " , width - padding - len (line )))
56- result .WriteString ("│\n " )
57- }
58-
59- // Bottom border
60- result .WriteString ("└" )
61- result .WriteString (strings .Repeat ("─" , width ))
62- result .WriteString ("┘" )
63-
64- return result .String ()
24+ return "" +
25+ "┌────────────────────────────────┐\n " +
26+ "│ 🚀 linear-cli │\n " +
27+ "│ Linear CLI - Built with ❤️ │\n " +
28+ "└────────────────────────────────┘"
6529}
6630
6731// rootCmd represents the base command when called without any subcommands
0 commit comments