99 "path/filepath"
1010 "strings"
1111
12+ "github.com/Bharath-code/git-scope/internal/browser"
1213 "github.com/Bharath-code/git-scope/internal/config"
1314 "github.com/Bharath-code/git-scope/internal/scan"
1415 "github.com/Bharath-code/git-scope/internal/tui"
@@ -27,6 +28,7 @@ Commands:
2728 scan Scan and print repos (JSON)
2829 scan-all Full system scan from home directory (with stats)
2930 init Create config file interactively
31+ issue Open git-scope GitHub issues page in browser
3032 help Show this help
3133
3234Examples:
@@ -35,6 +37,7 @@ Examples:
3537 git-scope scan . # Scan current directory (JSON)
3638 git-scope scan-all # Find ALL repos on your system
3739 git-scope init # Setup config interactively
40+ git-scope issue # Open GitHub issues page
3841
3942Flags:
4043` , version )
@@ -61,7 +64,7 @@ func main() {
6164 // Parse command and directories
6265 if len (args ) >= 1 {
6366 switch args [0 ] {
64- case "scan" , "tui" , "help" , "init" , "scan-all" , "-h" , "--help" , "-v" , "--version" :
67+ case "scan" , "tui" , "help" , "init" , "scan-all" , "issue" , " -h" , "--help" , "-v" , "--version" :
6568 cmd = args [0 ]
6669 dirs = args [1 :]
6770 default :
@@ -89,6 +92,12 @@ func main() {
8992 return
9093 }
9194
95+ // Handle issue command
96+ if cmd == "issue" {
97+ runIssue ()
98+ return
99+ }
100+
92101 // Load configuration
93102 cfg , err := config .Load (* configPath )
94103 if err != nil {
@@ -293,6 +302,16 @@ func runInit() {
293302 fmt .Println ("\n 🚀 Run 'git-scope' to launch the dashboard!" )
294303}
295304
305+ // runIssue opens the git-scope GitHub issues page in the default browser
306+ func runIssue () {
307+ issuesURL := "https://github.com/Bharath-code/git-scope/issues"
308+ if err := browser .Open (issuesURL ); err != nil {
309+ fmt .Fprintf (os .Stderr , "Failed to open browser: %v\n " , err )
310+ fmt .Fprintf (os .Stderr , "You can visit the issues page manually at: %s\n " , issuesURL )
311+ os .Exit (1 )
312+ }
313+ }
314+
296315// runScanAll performs a full system scan starting from home directory
297316func runScanAll () {
298317 home , err := os .UserHomeDir ()
0 commit comments