start with upgdrade (broken right now)

This commit is contained in:
Robin Olsen
2026-03-18 11:23:10 +01:00
parent 0c01583ba3
commit 40d25cc716
45 changed files with 218 additions and 218 deletions

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"os"
"github.com/charmbracelet/huh"
"charm.land/huh/v2"
)
type Initializer interface {

View File

@@ -3,7 +3,7 @@ package issues
import (
"fmt"
"github.com/charmbracelet/huh"
"charm.land/huh/v2"
"github.com/spf13/cobra"
)

View File

@@ -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"
)

View File

@@ -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

View File

@@ -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"
)

View File

@@ -3,7 +3,7 @@ package models
import (
"context"
"github.com/charmbracelet/huh"
"charm.land/huh/v2"
)
type Tasker interface {

View File

@@ -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 {

View File

@@ -1,7 +1,7 @@
package style
import (
"github.com/charmbracelet/lipgloss"
"charm.land/lipgloss/v2"
)
// Color palette

View File

@@ -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)