fleet/tools/github-manage/cmd/gm/issue.go
George Karr 3c687f2ed9
Adding direction to add views and workflows (#33177)
This looks like a log but it's just moving the code that lived in
cmd/gm/ui.go into it's own pkg that makes it clearer where each part of
the UI lives.

I am also adding the functionality for bulk sprint demo to grab names
from github usernames.
2025-09-25 14:05:39 -05:00

26 lines
505 B
Go

package main
import (
"fmt"
"fleetdm/gm/pkg/tui"
"github.com/spf13/cobra"
)
var issuesCmd = &cobra.Command{
Use: "issues",
Short: "Get GitHub issues",
Run: func(cmd *cobra.Command, args []string) {
search, err := cmd.Flags().GetString("search")
if err != nil {
fmt.Printf("Error getting search flag: %v\n", err)
return
}
tui.RunTUI(tui.IssuesCommand, 0, 0, search)
},
}
func init() {
issuesCmd.Flags().StringP("search", "s", "", "Search for issues by github search syntax")
}