refactor to use app package instead of service

refactor app to be composable
This commit is contained in:
Robin Olsen
2026-02-28 23:30:31 +01:00
parent ba4d3df669
commit aabce0b0b2
56 changed files with 385 additions and 279 deletions

View File

@@ -1,10 +1,10 @@
package issuesCmd
package issues
import (
"strings"
"github.com/LazyBachelor/LazyPM/internal/models"
"github.com/LazyBachelor/LazyPM/internal/utils"
"github.com/LazyBachelor/LazyPM/internal/utils/shellcomp"
"github.com/spf13/cobra"
)
@@ -79,7 +79,7 @@ func init() {
ListCmd.Flags().IntVarP(&listFlags.limit, "limit", "l", 25, "Limit the number of issues returned")
ListCmd.RegisterFlagCompletionFunc("status", utils.CompletionFunc(statusOptions))
ListCmd.RegisterFlagCompletionFunc("type", utils.CompletionFunc(typeOptions))
ListCmd.RegisterFlagCompletionFunc("priority", utils.CompletionFunc(priorityRange))
ListCmd.RegisterFlagCompletionFunc("status", shellcomp.CompletionFunc(statusOptions))
ListCmd.RegisterFlagCompletionFunc("type", shellcomp.CompletionFunc(typeOptions))
ListCmd.RegisterFlagCompletionFunc("priority", shellcomp.CompletionFunc(priorityRange))
}