start with upgdrade (broken right now)
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/charmbracelet/huh"
|
||||
"charm.land/huh/v2"
|
||||
)
|
||||
|
||||
type Initializer interface {
|
||||
|
||||
@@ -3,7 +3,7 @@ package issues
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/charmbracelet/huh"
|
||||
"charm.land/huh/v2"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"charm.land/huh/v2"
|
||||
"github.com/LazyBachelor/LazyPM/internal/models"
|
||||
"github.com/charmbracelet/huh"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
||||
@@ -44,12 +44,10 @@ func runGetIssuesCmd(cmd *cobra.Command, args []string) error {
|
||||
// Only set filter fields if the corresponding flags
|
||||
// were explicitly provided by the user.
|
||||
if cmd.Flags().Changed("status") {
|
||||
s := models.Status(listFlags.status)
|
||||
filter.Status = &s
|
||||
filter.Status = new(models.Status(listFlags.status))
|
||||
}
|
||||
if cmd.Flags().Changed("type") {
|
||||
t := models.IssueType(listFlags.issueType)
|
||||
filter.IssueType = &t
|
||||
filter.IssueType = new(models.IssueType(listFlags.issueType))
|
||||
}
|
||||
if cmd.Flags().Changed("priority") {
|
||||
filter.Priority = &listFlags.priority
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"bytes"
|
||||
"context"
|
||||
|
||||
"charm.land/fang/v2"
|
||||
"github.com/LazyBachelor/LazyPM/internal/models"
|
||||
"github.com/charmbracelet/fang"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@ package models
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/charmbracelet/huh"
|
||||
"charm.land/huh/v2"
|
||||
)
|
||||
|
||||
type Tasker interface {
|
||||
|
||||
@@ -7,11 +7,11 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"charm.land/huh/v2"
|
||||
"github.com/LazyBachelor/LazyPM/internal/models"
|
||||
"github.com/charmbracelet/huh"
|
||||
"go.mongodb.org/mongo-driver/bson"
|
||||
"go.mongodb.org/mongo-driver/mongo"
|
||||
"go.mongodb.org/mongo-driver/mongo/options"
|
||||
"go.mongodb.org/mongo-driver/v2/bson"
|
||||
"go.mongodb.org/mongo-driver/v2/mongo"
|
||||
"go.mongodb.org/mongo-driver/v2/mongo/options"
|
||||
)
|
||||
|
||||
type MongoStorage struct {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package style
|
||||
|
||||
import (
|
||||
"github.com/charmbracelet/lipgloss"
|
||||
"charm.land/lipgloss/v2"
|
||||
)
|
||||
|
||||
// Color palette
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package style
|
||||
|
||||
import (
|
||||
"github.com/charmbracelet/huh"
|
||||
"github.com/charmbracelet/lipgloss"
|
||||
"charm.land/huh/v2"
|
||||
"charm.land/lipgloss/v2"
|
||||
)
|
||||
|
||||
func HuhCenterTheme() *huh.Theme {
|
||||
theme := huh.ThemeBase16()
|
||||
func HuhCenterTheme() *huh.Styles {
|
||||
theme := huh.ThemeBase16(true)
|
||||
|
||||
theme.Focused.Base = lipgloss.NewStyle().Align(lipgloss.Center)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user