Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/cli/apikey.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cli
import (
"errors"

"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/store"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/cli/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cli

import (
"github.com/dustin/go-humanize"
"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/store"
"github.com/spf13/cobra"
)

Expand Down
8 changes: 4 additions & 4 deletions internal/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"strings"
"testing"

"github.com/kldzj/pzmod/internal/serverconfig"
"github.com/kldzj/pzmod/internal/steam"
"github.com/kldzj/pzmod/internal/steam/steamtest"
"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/serverconfig"
"github.com/kldzj/pzmod/pkg/steam"
"github.com/kldzj/pzmod/pkg/steam/steamtest"
"github.com/kldzj/pzmod/pkg/store"
)

func testStore(t *testing.T) *store.Store {
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"path/filepath"

"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/store"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/cli/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"sort"
"strings"

"github.com/kldzj/pzmod/internal/serverconfig"
"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/serverconfig"
"github.com/kldzj/pzmod/pkg/store"
"github.com/spf13/cobra"
)

Expand Down
10 changes: 5 additions & 5 deletions internal/cli/mods.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"fmt"
"strings"

"github.com/kldzj/pzmod/internal/build"
"github.com/kldzj/pzmod/internal/domain"
"github.com/kldzj/pzmod/internal/service"
"github.com/kldzj/pzmod/internal/steam"
"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/build"
"github.com/kldzj/pzmod/pkg/domain"
"github.com/kldzj/pzmod/pkg/service"
"github.com/kldzj/pzmod/pkg/steam"
"github.com/kldzj/pzmod/pkg/store"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/cli/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cli

import (
"github.com/charmbracelet/lipgloss"
"github.com/kldzj/pzmod/internal/domain"
"github.com/kldzj/pzmod/pkg/domain"
)

// Severity styles shared by CLI output. lipgloss degrades gracefully on
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"

"github.com/kldzj/pzmod/internal/pathutil"
"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/store"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package cli

import (
"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/store"
"github.com/spf13/cobra"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/cli/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"strings"

"github.com/dustin/go-humanize"
"github.com/kldzj/pzmod/internal/service"
"github.com/kldzj/pzmod/internal/steam"
"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/service"
"github.com/kldzj/pzmod/pkg/steam"
"github.com/kldzj/pzmod/pkg/store"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/cli/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/store"
"github.com/spf13/cobra"
)

Expand Down
10 changes: 5 additions & 5 deletions internal/cli/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"errors"
"path/filepath"

"github.com/kldzj/pzmod/internal/build"
"github.com/kldzj/pzmod/pkg/build"
"github.com/kldzj/pzmod/internal/pathutil"
"github.com/kldzj/pzmod/internal/serverconfig"
"github.com/kldzj/pzmod/internal/service"
"github.com/kldzj/pzmod/internal/steam"
"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/serverconfig"
"github.com/kldzj/pzmod/pkg/service"
"github.com/kldzj/pzmod/pkg/steam"
"github.com/kldzj/pzmod/pkg/store"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/cli/tui_launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package cli
import (
"context"

"github.com/kldzj/pzmod/internal/service"
"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/service"
"github.com/kldzj/pzmod/pkg/store"
"github.com/kldzj/pzmod/internal/tui"
"github.com/spf13/cobra"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/cli/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package cli
import (
"fmt"

"github.com/kldzj/pzmod/internal/domain"
"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/domain"
"github.com/kldzj/pzmod/pkg/store"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/tui/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"

tea "github.com/charmbracelet/bubbletea"
"github.com/kldzj/pzmod/internal/build"
"github.com/kldzj/pzmod/internal/domain"
"github.com/kldzj/pzmod/pkg/build"
"github.com/kldzj/pzmod/pkg/domain"
)

// quickAdd fetches a Workshop item and adds it (plus its declared mods/maps) to
Expand Down
6 changes: 3 additions & 3 deletions internal/tui/addsheet.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"strings"

tea "github.com/charmbracelet/bubbletea"
"github.com/kldzj/pzmod/internal/build"
"github.com/kldzj/pzmod/internal/domain"
"github.com/kldzj/pzmod/internal/steam"
"github.com/kldzj/pzmod/pkg/build"
"github.com/kldzj/pzmod/pkg/domain"
"github.com/kldzj/pzmod/pkg/steam"
)

type addRow struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/tui/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"github.com/charmbracelet/bubbles/key"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
"github.com/kldzj/pzmod/internal/service"
"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/service"
"github.com/kldzj/pzmod/pkg/store"
)

type confirmState struct {
Expand Down
8 changes: 4 additions & 4 deletions internal/tui/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (

tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/x/exp/teatest"
"github.com/kldzj/pzmod/internal/service"
"github.com/kldzj/pzmod/internal/steam"
"github.com/kldzj/pzmod/internal/steam/steamtest"
"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/service"
"github.com/kldzj/pzmod/pkg/steam"
"github.com/kldzj/pzmod/pkg/steam/steamtest"
"github.com/kldzj/pzmod/pkg/store"
)

func testModel(t *testing.T, fake *steamtest.Fake) (*teatest.TestModel, *model, *store.Store) {
Expand Down
2 changes: 1 addition & 1 deletion internal/tui/autovalidate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package tui
import (
"testing"

"github.com/kldzj/pzmod/internal/steam/steamtest"
"github.com/kldzj/pzmod/pkg/steam/steamtest"
)

func TestDashboardAutoValidates(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions internal/tui/b42_add_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (

tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/x/exp/teatest"
"github.com/kldzj/pzmod/internal/steam"
"github.com/kldzj/pzmod/internal/steam/steamtest"
"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/steam"
"github.com/kldzj/pzmod/pkg/steam/steamtest"
"github.com/kldzj/pzmod/pkg/store"
)

// openB42Model opens a profile whose build is b42, starting at Installed Mods.
Expand Down
4 changes: 2 additions & 2 deletions internal/tui/backups.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

tea "github.com/charmbracelet/bubbletea"
"github.com/dustin/go-humanize"
"github.com/kldzj/pzmod/internal/serverconfig"
"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/serverconfig"
"github.com/kldzj/pzmod/pkg/store"
)

// backups lists config snapshots and supports restore/delete/snapshot/diff,
Expand Down
2 changes: 1 addition & 1 deletion internal/tui/backups_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/x/exp/teatest"
"github.com/kldzj/pzmod/internal/steam/steamtest"
"github.com/kldzj/pzmod/pkg/steam/steamtest"
)

func TestBackupsSnapshotAndRestore(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/tui/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strings"

tea "github.com/charmbracelet/bubbletea"
"github.com/kldzj/pzmod/internal/build"
"github.com/kldzj/pzmod/internal/domain"
"github.com/kldzj/pzmod/pkg/build"
"github.com/kldzj/pzmod/pkg/domain"
)

// dashboard is the main menu for the open profile.
Expand Down
8 changes: 4 additions & 4 deletions internal/tui/deps.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (

tea "github.com/charmbracelet/bubbletea"
"github.com/dustin/go-humanize"
"github.com/kldzj/pzmod/internal/build"
"github.com/kldzj/pzmod/internal/domain"
"github.com/kldzj/pzmod/pkg/build"
"github.com/kldzj/pzmod/pkg/domain"
"github.com/kldzj/pzmod/internal/openurl"
"github.com/kldzj/pzmod/internal/service"
"github.com/kldzj/pzmod/internal/steam"
"github.com/kldzj/pzmod/pkg/service"
"github.com/kldzj/pzmod/pkg/steam"
)

// deps resolves the dependency closure of some seed items and lets the user
Expand Down
6 changes: 3 additions & 3 deletions internal/tui/deps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (

tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/x/exp/teatest"
"github.com/kldzj/pzmod/internal/steam"
"github.com/kldzj/pzmod/internal/steam/steamtest"
"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/steam"
"github.com/kldzj/pzmod/pkg/steam/steamtest"
"github.com/kldzj/pzmod/pkg/store"
)

// openedModelAt builds a model with a profile already open, starting at initial.
Expand Down
4 changes: 2 additions & 2 deletions internal/tui/detail.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"github.com/charmbracelet/lipgloss"
"github.com/dustin/go-humanize"
"github.com/kldzj/pzmod/internal/bbcode"
"github.com/kldzj/pzmod/internal/domain"
"github.com/kldzj/pzmod/pkg/domain"
"github.com/kldzj/pzmod/internal/openurl"
"github.com/kldzj/pzmod/internal/steam"
"github.com/kldzj/pzmod/pkg/steam"
)

// detail shows a single Workshop item with a scrollable description and the
Expand Down
4 changes: 2 additions & 2 deletions internal/tui/detail_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/x/exp/teatest"
"github.com/kldzj/pzmod/internal/steam"
"github.com/kldzj/pzmod/internal/steam/steamtest"
"github.com/kldzj/pzmod/pkg/steam"
"github.com/kldzj/pzmod/pkg/steam/steamtest"
)

// TestDetailRemoveWhenInstalled verifies that pressing x on a detail screen for
Expand Down
4 changes: 2 additions & 2 deletions internal/tui/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/x/exp/teatest"
"github.com/kldzj/pzmod/internal/steam"
"github.com/kldzj/pzmod/internal/steam/steamtest"
"github.com/kldzj/pzmod/pkg/steam"
"github.com/kldzj/pzmod/pkg/steam/steamtest"
)

// TestE2EAddAndSave drives a full happy path: launcher -> open profile -> search
Expand Down
8 changes: 4 additions & 4 deletions internal/tui/firstrun_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (

tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/x/exp/teatest"
"github.com/kldzj/pzmod/internal/service"
"github.com/kldzj/pzmod/internal/steam"
"github.com/kldzj/pzmod/internal/steam/steamtest"
"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/service"
"github.com/kldzj/pzmod/pkg/steam"
"github.com/kldzj/pzmod/pkg/steam/steamtest"
"github.com/kldzj/pzmod/pkg/store"
)

// TestSettingsSaveReturnsToLauncher covers the first-run flow: with no API key
Expand Down
4 changes: 2 additions & 2 deletions internal/tui/installed.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

tea "github.com/charmbracelet/bubbletea"
"github.com/dustin/go-humanize"
"github.com/kldzj/pzmod/internal/domain"
"github.com/kldzj/pzmod/pkg/domain"
"github.com/kldzj/pzmod/internal/openurl"
"github.com/kldzj/pzmod/internal/steam"
"github.com/kldzj/pzmod/pkg/steam"
)

type installedRow struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/tui/installed_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/x/exp/teatest"
"github.com/kldzj/pzmod/internal/steam"
"github.com/kldzj/pzmod/internal/steam/steamtest"
"github.com/kldzj/pzmod/pkg/steam"
"github.com/kldzj/pzmod/pkg/steam/steamtest"
)

func TestInstalledFilterByTitle(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/tui/installed_refresh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"

tea "github.com/charmbracelet/bubbletea"
"github.com/kldzj/pzmod/internal/steam"
"github.com/kldzj/pzmod/internal/steam/steamtest"
"github.com/kldzj/pzmod/pkg/steam"
"github.com/kldzj/pzmod/pkg/steam/steamtest"
)

// TestAddByIDRefreshesInstalledList asserts on a list-only token (the new
Expand Down
4 changes: 2 additions & 2 deletions internal/tui/installed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/x/exp/teatest"
"github.com/kldzj/pzmod/internal/steam"
"github.com/kldzj/pzmod/internal/steam/steamtest"
"github.com/kldzj/pzmod/pkg/steam"
"github.com/kldzj/pzmod/pkg/steam/steamtest"
)

func TestInstalledScrollsToEnd(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/tui/launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

tea "github.com/charmbracelet/bubbletea"
"github.com/kldzj/pzmod/internal/pathutil"
"github.com/kldzj/pzmod/internal/store"
"github.com/kldzj/pzmod/pkg/store"
)

// launcher is the first screen: choose or create a profile.
Expand Down
Loading
Loading