diff options
| author | mo khan <mo@mokhan.ca> | 2024-05-18 12:20:35 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2024-05-18 12:20:35 -0600 |
| commit | b55760aaa22674b0de3c148eafe13899de2b6041 (patch) | |
| tree | ff689481b121b892498c9e62ae6e9bb24423c02c /cmd | |
| parent | 41fe3a65860c6d9572e4dde4682d8233a3bd3ba3 (diff) | |
refactor: extract func to parse issues
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/stanuki/main.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/stanuki/main.go b/cmd/stanuki/main.go index 18284d4..3d0da86 100644 --- a/cmd/stanuki/main.go +++ b/cmd/stanuki/main.go @@ -7,7 +7,6 @@ import ( "net/http" "github.com/xlgmokha/x/pkg/env" - "github.com/xlgmokha/x/pkg/serde" "github.com/xlgmokha/x/pkg/x" "gitlab.com/mokhax/stanuki/pkg/gitlab" ) @@ -22,7 +21,7 @@ func main() { if env.Fetch("DUMP", "") != "" { fmt.Println(string(x.Must(io.ReadAll(response.Body)))) } else { - issues := x.Must(serde.From[[]gitlab.Issue](response.Body, serde.JSON)) + issues := x.Must(gitlab.FromIssues(response.Body)) for _, issue := range issues { fmt.Printf("%v: %v\n", issue.ID, issue.Title) } |
