fixed all formatting errors

This commit is contained in:
christophe-duc 2026-01-07 18:54:05 -04:00
parent bb810d0523
commit 6677a039df
25 changed files with 122 additions and 122 deletions

View file

@ -6,9 +6,9 @@ import (
"os/exec" "os/exec"
"strings" "strings"
"github.com/go-errors/errors"
"github.com/christophe-duc/lazypodman/pkg/i18n" "github.com/christophe-duc/lazypodman/pkg/i18n"
"github.com/christophe-duc/lazypodman/pkg/utils" "github.com/christophe-duc/lazypodman/pkg/utils"
"github.com/go-errors/errors"
"github.com/sasha-s/go-deadlock" "github.com/sasha-s/go-deadlock"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"golang.org/x/xerrors" "golang.org/x/xerrors"

View file

@ -4,8 +4,8 @@ import (
"context" "context"
"strings" "strings"
"github.com/fatih/color"
"github.com/christophe-duc/lazypodman/pkg/utils" "github.com/christophe-duc/lazypodman/pkg/utils"
"github.com/fatih/color"
"github.com/samber/lo" "github.com/samber/lo"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
) )

View file

@ -13,9 +13,9 @@ import (
"github.com/go-errors/errors" "github.com/go-errors/errors"
"github.com/jesseduffield/kill"
"github.com/christophe-duc/lazypodman/pkg/config" "github.com/christophe-duc/lazypodman/pkg/config"
"github.com/christophe-duc/lazypodman/pkg/utils" "github.com/christophe-duc/lazypodman/pkg/utils"
"github.com/jesseduffield/kill"
"github.com/mgutz/str" "github.com/mgutz/str"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
) )

View file

@ -12,11 +12,11 @@ import (
"sync" "sync"
"time" "time"
"github.com/imdario/mergo"
"github.com/christophe-duc/lazypodman/pkg/commands/ssh" "github.com/christophe-duc/lazypodman/pkg/commands/ssh"
"github.com/christophe-duc/lazypodman/pkg/config" "github.com/christophe-duc/lazypodman/pkg/config"
"github.com/christophe-duc/lazypodman/pkg/i18n" "github.com/christophe-duc/lazypodman/pkg/i18n"
"github.com/christophe-duc/lazypodman/pkg/utils" "github.com/christophe-duc/lazypodman/pkg/utils"
"github.com/imdario/mergo"
"github.com/sasha-s/go-deadlock" "github.com/sasha-s/go-deadlock"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
) )
@ -27,15 +27,15 @@ const (
// PodmanCommand is our main podman interface // PodmanCommand is our main podman interface
type PodmanCommand struct { type PodmanCommand struct {
Log *logrus.Entry Log *logrus.Entry
OSCommand *OSCommand OSCommand *OSCommand
Tr *i18n.TranslationSet Tr *i18n.TranslationSet
Config *config.AppConfig Config *config.AppConfig
Runtime ContainerRuntime Runtime ContainerRuntime
InComposeProject bool InComposeProject bool
ErrorChan chan error ErrorChan chan error
ContainerMutex deadlock.Mutex ContainerMutex deadlock.Mutex
ServiceMutex deadlock.Mutex ServiceMutex deadlock.Mutex
Closers []io.Closer Closers []io.Closer
} }
@ -110,9 +110,9 @@ func NewPodmanCommand(log *logrus.Entry, osCommand *OSCommand, tr *i18n.Translat
} }
podmanCommand := &PodmanCommand{ podmanCommand := &PodmanCommand{
Log: log, Log: log,
OSCommand: osCommand, OSCommand: osCommand,
Tr: tr, Tr: tr,
Config: config, Config: config,
Runtime: runtime, Runtime: runtime,
ErrorChan: errorChan, ErrorChan: errorChan,

View file

@ -516,8 +516,8 @@ func convertLibpodContainerStats(stats *define.ContainerStats) ContainerStatsEnt
func convertLibpodImageList(ctx context.Context, imgs []*libimage.Image) []ImageSummary { func convertLibpodImageList(ctx context.Context, imgs []*libimage.Image) []ImageSummary {
result := make([]ImageSummary, len(imgs)) result := make([]ImageSummary, len(imgs))
for i, img := range imgs { for i, img := range imgs {
size, _ := img.Size() // Ignore error for list view size, _ := img.Size() // Ignore error for list view
labels, _ := img.Labels(ctx) // Ignore error for list view labels, _ := img.Labels(ctx) // Ignore error for list view
result[i] = ImageSummary{ result[i] = ImageSummary{
ID: img.ID(), ID: img.ID(),
RepoTags: img.Names(), RepoTags: img.Names(),

View file

@ -10,34 +10,34 @@ import (
// If a function is not set, the method returns sensible defaults or errors. // If a function is not set, the method returns sensible defaults or errors.
type MockRuntime struct { type MockRuntime struct {
// Container operation mocks // Container operation mocks
ListContainersFunc func(ctx context.Context) ([]ContainerSummary, error) ListContainersFunc func(ctx context.Context) ([]ContainerSummary, error)
InspectContainerFunc func(ctx context.Context, id string) (*ContainerDetails, error) InspectContainerFunc func(ctx context.Context, id string) (*ContainerDetails, error)
StartContainerFunc func(ctx context.Context, id string) error StartContainerFunc func(ctx context.Context, id string) error
StopContainerFunc func(ctx context.Context, id string, timeout *int) error StopContainerFunc func(ctx context.Context, id string, timeout *int) error
PauseContainerFunc func(ctx context.Context, id string) error PauseContainerFunc func(ctx context.Context, id string) error
UnpauseContainerFunc func(ctx context.Context, id string) error UnpauseContainerFunc func(ctx context.Context, id string) error
RestartContainerFunc func(ctx context.Context, id string, timeout *int) error RestartContainerFunc func(ctx context.Context, id string, timeout *int) error
RemoveContainerFunc func(ctx context.Context, id string, force bool, volumes bool) error RemoveContainerFunc func(ctx context.Context, id string, force bool, volumes bool) error
ContainerTopFunc func(ctx context.Context, id string) ([]string, [][]string, error) ContainerTopFunc func(ctx context.Context, id string) ([]string, [][]string, error)
PruneContainersFunc func(ctx context.Context) error PruneContainersFunc func(ctx context.Context) error
ContainerStatsFunc func(ctx context.Context, id string, stream bool) (<-chan ContainerStatsEntry, <-chan error) ContainerStatsFunc func(ctx context.Context, id string, stream bool) (<-chan ContainerStatsEntry, <-chan error)
// Image operation mocks // Image operation mocks
ListImagesFunc func(ctx context.Context) ([]ImageSummary, error) ListImagesFunc func(ctx context.Context) ([]ImageSummary, error)
InspectImageFunc func(ctx context.Context, id string) (*ImageDetails, error) InspectImageFunc func(ctx context.Context, id string) (*ImageDetails, error)
ImageHistoryFunc func(ctx context.Context, id string) ([]ImageHistoryEntry, error) ImageHistoryFunc func(ctx context.Context, id string) ([]ImageHistoryEntry, error)
RemoveImageFunc func(ctx context.Context, id string, force bool) error RemoveImageFunc func(ctx context.Context, id string, force bool) error
PruneImagesFunc func(ctx context.Context) error PruneImagesFunc func(ctx context.Context) error
// Volume operation mocks // Volume operation mocks
ListVolumesFunc func(ctx context.Context) ([]VolumeSummary, error) ListVolumesFunc func(ctx context.Context) ([]VolumeSummary, error)
RemoveVolumeFunc func(ctx context.Context, name string, force bool) error RemoveVolumeFunc func(ctx context.Context, name string, force bool) error
PruneVolumesFunc func(ctx context.Context) error PruneVolumesFunc func(ctx context.Context) error
// Network operation mocks // Network operation mocks
ListNetworksFunc func(ctx context.Context) ([]NetworkSummary, error) ListNetworksFunc func(ctx context.Context) ([]NetworkSummary, error)
RemoveNetworkFunc func(ctx context.Context, name string) error RemoveNetworkFunc func(ctx context.Context, name string) error
PruneNetworksFunc func(ctx context.Context) error PruneNetworksFunc func(ctx context.Context) error
// Pod operation mocks // Pod operation mocks
ListPodsFunc func(ctx context.Context) ([]PodSummary, error) ListPodsFunc func(ctx context.Context) ([]PodSummary, error)

View file

@ -7,6 +7,7 @@ import (
"time" "time"
"github.com/containers/podman/v5/libpod/define" "github.com/containers/podman/v5/libpod/define"
handlertypes "github.com/containers/podman/v5/pkg/api/handlers/types"
"github.com/containers/podman/v5/pkg/bindings" "github.com/containers/podman/v5/pkg/bindings"
"github.com/containers/podman/v5/pkg/bindings/containers" "github.com/containers/podman/v5/pkg/bindings/containers"
"github.com/containers/podman/v5/pkg/bindings/images" "github.com/containers/podman/v5/pkg/bindings/images"
@ -16,7 +17,6 @@ import (
"github.com/containers/podman/v5/pkg/bindings/volumes" "github.com/containers/podman/v5/pkg/bindings/volumes"
"github.com/containers/podman/v5/pkg/domain/entities" "github.com/containers/podman/v5/pkg/domain/entities"
"github.com/containers/podman/v5/pkg/domain/entities/types" "github.com/containers/podman/v5/pkg/domain/entities/types"
handlertypes "github.com/containers/podman/v5/pkg/api/handlers/types"
nettypes "go.podman.io/common/libnetwork/types" nettypes "go.podman.io/common/libnetwork/types"
) )
@ -520,17 +520,17 @@ func convertPodmanImageInspect(data *entities.ImageInspectReport) *ImageDetails
} }
details := &ImageDetails{ details := &ImageDetails{
ID: data.ID, ID: data.ID,
RepoTags: data.RepoTags, RepoTags: data.RepoTags,
RepoDigests: data.RepoDigests, RepoDigests: data.RepoDigests,
Parent: data.Parent, Parent: data.Parent,
Comment: data.Comment, Comment: data.Comment,
Created: *data.Created, Created: *data.Created,
Author: data.Author, Author: data.Author,
Architecture: data.Architecture, Architecture: data.Architecture,
Os: data.Os, Os: data.Os,
Size: data.Size, Size: data.Size,
VirtualSize: data.VirtualSize, VirtualSize: data.VirtualSize,
} }
if data.RootFS != nil { if data.RootFS != nil {

View file

@ -90,27 +90,27 @@ type HealthLog struct {
// ContainerConfig represents container configuration. // ContainerConfig represents container configuration.
type ContainerConfig struct { type ContainerConfig struct {
Hostname string Hostname string
Domainname string Domainname string
User string User string
AttachStdin bool AttachStdin bool
AttachStdout bool AttachStdout bool
AttachStderr bool AttachStderr bool
ExposedPorts map[string]struct{} ExposedPorts map[string]struct{}
Tty bool Tty bool
OpenStdin bool OpenStdin bool
StdinOnce bool StdinOnce bool
Env []string Env []string
Cmd []string Cmd []string
Image string Image string
Volumes map[string]struct{} Volumes map[string]struct{}
WorkingDir string WorkingDir string
Entrypoint []string Entrypoint []string
OnBuild []string OnBuild []string
Labels map[string]string Labels map[string]string
StopSignal string StopSignal string
StopTimeout *int StopTimeout *int
Shell []string Shell []string
} }
// NetworkSettings represents container network settings. // NetworkSettings represents container network settings.
@ -304,23 +304,23 @@ type ImageSummary struct {
// ImageDetails provides full image inspection data. // ImageDetails provides full image inspection data.
type ImageDetails struct { type ImageDetails struct {
ID string ID string
RepoTags []string RepoTags []string
RepoDigests []string RepoDigests []string
Parent string Parent string
Comment string Comment string
Created time.Time Created time.Time
Container string Container string
DockerVersion string DockerVersion string
Author string Author string
Config *ContainerConfig Config *ContainerConfig
Architecture string Architecture string
Os string Os string
OsVersion string OsVersion string
Size int64 Size int64
VirtualSize int64 VirtualSize int64
RootFS RootFS RootFS RootFS
Metadata ImageMetadata Metadata ImageMetadata
} }
// RootFS represents the root filesystem of an image. // RootFS represents the root filesystem of an image.

View file

@ -71,15 +71,15 @@ func TestContainerDetailsFields(t *testing.T) {
Image: "alpine:latest", Image: "alpine:latest",
ImageID: "sha256:abc123", ImageID: "sha256:abc123",
Config: &ContainerConfig{ Config: &ContainerConfig{
Hostname: "myhost", Hostname: "myhost",
User: "root", User: "root",
Tty: true, Tty: true,
Env: []string{"PATH=/usr/bin"}, Env: []string{"PATH=/usr/bin"},
Cmd: []string{"sleep", "infinity"}, Cmd: []string{"sleep", "infinity"},
WorkingDir: "/app", WorkingDir: "/app",
Entrypoint: []string{"/entrypoint.sh"}, Entrypoint: []string{"/entrypoint.sh"},
Labels: map[string]string{"version": "1.0"}, Labels: map[string]string{"version": "1.0"},
StopSignal: "SIGTERM", StopSignal: "SIGTERM",
}, },
NetworkSettings: &NetworkSettings{ NetworkSettings: &NetworkSettings{
Bridge: "bridge0", Bridge: "bridge0",

View file

@ -3,8 +3,8 @@ package gui
import ( import (
"time" "time"
"github.com/jesseduffield/gocui"
"github.com/christophe-duc/lazypodman/pkg/utils" "github.com/christophe-duc/lazypodman/pkg/utils"
"github.com/jesseduffield/gocui"
) )
type appStatus struct { type appStatus struct {

View file

@ -1,9 +1,9 @@
package gui package gui
import ( import (
"github.com/jesseduffield/lazycore/pkg/boxlayout"
"github.com/christophe-duc/lazypodman/pkg/gui/panels" "github.com/christophe-duc/lazypodman/pkg/gui/panels"
"github.com/christophe-duc/lazypodman/pkg/utils" "github.com/christophe-duc/lazypodman/pkg/utils"
"github.com/jesseduffield/lazycore/pkg/boxlayout"
"github.com/mattn/go-runewidth" "github.com/mattn/go-runewidth"
"github.com/samber/lo" "github.com/samber/lo"
) )

View file

@ -8,10 +8,10 @@ import (
"os/signal" "os/signal"
"time" "time"
"github.com/fatih/color"
"github.com/christophe-duc/lazypodman/pkg/commands" "github.com/christophe-duc/lazypodman/pkg/commands"
"github.com/christophe-duc/lazypodman/pkg/tasks" "github.com/christophe-duc/lazypodman/pkg/tasks"
"github.com/christophe-duc/lazypodman/pkg/utils" "github.com/christophe-duc/lazypodman/pkg/utils"
"github.com/fatih/color"
) )
func (gui *Gui) renderContainerLogsToMain(container *commands.Container) tasks.TaskFunc { func (gui *Gui) renderContainerLogsToMain(container *commands.Container) tasks.TaskFunc {

View file

@ -6,8 +6,6 @@ import (
"strings" "strings"
"time" "time"
"github.com/fatih/color"
"github.com/jesseduffield/gocui"
"github.com/christophe-duc/lazypodman/pkg/commands" "github.com/christophe-duc/lazypodman/pkg/commands"
"github.com/christophe-duc/lazypodman/pkg/config" "github.com/christophe-duc/lazypodman/pkg/config"
"github.com/christophe-duc/lazypodman/pkg/gui/panels" "github.com/christophe-duc/lazypodman/pkg/gui/panels"
@ -15,6 +13,8 @@ import (
"github.com/christophe-duc/lazypodman/pkg/gui/types" "github.com/christophe-duc/lazypodman/pkg/gui/types"
"github.com/christophe-duc/lazypodman/pkg/tasks" "github.com/christophe-duc/lazypodman/pkg/tasks"
"github.com/christophe-duc/lazypodman/pkg/utils" "github.com/christophe-duc/lazypodman/pkg/utils"
"github.com/fatih/color"
"github.com/jesseduffield/gocui"
"github.com/samber/lo" "github.com/samber/lo"
) )

View file

@ -1,11 +1,11 @@
package gui package gui
import ( import (
"github.com/fatih/color"
"github.com/christophe-duc/lazypodman/pkg/commands" "github.com/christophe-duc/lazypodman/pkg/commands"
"github.com/christophe-duc/lazypodman/pkg/config" "github.com/christophe-duc/lazypodman/pkg/config"
"github.com/christophe-duc/lazypodman/pkg/gui/types" "github.com/christophe-duc/lazypodman/pkg/gui/types"
"github.com/christophe-duc/lazypodman/pkg/utils" "github.com/christophe-duc/lazypodman/pkg/utils"
"github.com/fatih/color"
"github.com/samber/lo" "github.com/samber/lo"
) )

View file

@ -1,9 +1,9 @@
package gui package gui
import ( import (
"github.com/christophe-duc/lazypodman/pkg/utils"
"github.com/gookit/color" "github.com/gookit/color"
"github.com/jesseduffield/gocui" "github.com/jesseduffield/gocui"
"github.com/christophe-duc/lazypodman/pkg/utils"
) )
var gocuiColorMap = map[string]gocui.Attribute{ var gocuiColorMap = map[string]gocui.Attribute{

View file

@ -9,14 +9,14 @@ import (
"github.com/go-errors/errors" "github.com/go-errors/errors"
throttle "github.com/boz/go-throttle" throttle "github.com/boz/go-throttle"
"github.com/jesseduffield/gocui"
lcUtils "github.com/jesseduffield/lazycore/pkg/utils"
"github.com/christophe-duc/lazypodman/pkg/commands" "github.com/christophe-duc/lazypodman/pkg/commands"
"github.com/christophe-duc/lazypodman/pkg/config" "github.com/christophe-duc/lazypodman/pkg/config"
"github.com/christophe-duc/lazypodman/pkg/gui/panels" "github.com/christophe-duc/lazypodman/pkg/gui/panels"
"github.com/christophe-duc/lazypodman/pkg/gui/types" "github.com/christophe-duc/lazypodman/pkg/gui/types"
"github.com/christophe-duc/lazypodman/pkg/i18n" "github.com/christophe-duc/lazypodman/pkg/i18n"
"github.com/christophe-duc/lazypodman/pkg/tasks" "github.com/christophe-duc/lazypodman/pkg/tasks"
"github.com/jesseduffield/gocui"
lcUtils "github.com/jesseduffield/lazycore/pkg/utils"
"github.com/sasha-s/go-deadlock" "github.com/sasha-s/go-deadlock"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
) )

View file

@ -5,8 +5,6 @@ import (
"strings" "strings"
"time" "time"
"github.com/fatih/color"
"github.com/jesseduffield/gocui"
"github.com/christophe-duc/lazypodman/pkg/commands" "github.com/christophe-duc/lazypodman/pkg/commands"
"github.com/christophe-duc/lazypodman/pkg/config" "github.com/christophe-duc/lazypodman/pkg/config"
"github.com/christophe-duc/lazypodman/pkg/gui/panels" "github.com/christophe-duc/lazypodman/pkg/gui/panels"
@ -14,6 +12,8 @@ import (
"github.com/christophe-duc/lazypodman/pkg/gui/types" "github.com/christophe-duc/lazypodman/pkg/gui/types"
"github.com/christophe-duc/lazypodman/pkg/tasks" "github.com/christophe-duc/lazypodman/pkg/tasks"
"github.com/christophe-duc/lazypodman/pkg/utils" "github.com/christophe-duc/lazypodman/pkg/utils"
"github.com/fatih/color"
"github.com/jesseduffield/gocui"
"github.com/samber/lo" "github.com/samber/lo"
) )

View file

@ -3,8 +3,6 @@ package gui
import ( import (
"strconv" "strconv"
"github.com/fatih/color"
"github.com/jesseduffield/gocui"
"github.com/christophe-duc/lazypodman/pkg/commands" "github.com/christophe-duc/lazypodman/pkg/commands"
"github.com/christophe-duc/lazypodman/pkg/config" "github.com/christophe-duc/lazypodman/pkg/config"
"github.com/christophe-duc/lazypodman/pkg/gui/panels" "github.com/christophe-duc/lazypodman/pkg/gui/panels"
@ -12,6 +10,8 @@ import (
"github.com/christophe-duc/lazypodman/pkg/gui/types" "github.com/christophe-duc/lazypodman/pkg/gui/types"
"github.com/christophe-duc/lazypodman/pkg/tasks" "github.com/christophe-duc/lazypodman/pkg/tasks"
"github.com/christophe-duc/lazypodman/pkg/utils" "github.com/christophe-duc/lazypodman/pkg/utils"
"github.com/fatih/color"
"github.com/jesseduffield/gocui"
"github.com/samber/lo" "github.com/samber/lo"
) )

View file

@ -3,8 +3,8 @@ package gui
import ( import (
"github.com/samber/lo" "github.com/samber/lo"
"github.com/jesseduffield/gocui"
"github.com/christophe-duc/lazypodman/pkg/gui/types" "github.com/christophe-duc/lazypodman/pkg/gui/types"
"github.com/jesseduffield/gocui"
) )
func (gui *Gui) getBindings(v *gocui.View) []*Binding { func (gui *Gui) getBindings(v *gocui.View) []*Binding {

View file

@ -5,10 +5,10 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/go-errors/errors"
"github.com/jesseduffield/gocui"
"github.com/christophe-duc/lazypodman/pkg/tasks" "github.com/christophe-duc/lazypodman/pkg/tasks"
"github.com/christophe-duc/lazypodman/pkg/utils" "github.com/christophe-duc/lazypodman/pkg/utils"
"github.com/go-errors/errors"
"github.com/jesseduffield/gocui"
"github.com/samber/lo" "github.com/samber/lo"
) )

View file

@ -6,13 +6,13 @@ import (
"path" "path"
"strings" "strings"
"github.com/fatih/color"
"github.com/jesseduffield/gocui"
"github.com/christophe-duc/lazypodman/pkg/commands" "github.com/christophe-duc/lazypodman/pkg/commands"
"github.com/christophe-duc/lazypodman/pkg/gui/panels" "github.com/christophe-duc/lazypodman/pkg/gui/panels"
"github.com/christophe-duc/lazypodman/pkg/gui/presentation" "github.com/christophe-duc/lazypodman/pkg/gui/presentation"
"github.com/christophe-duc/lazypodman/pkg/tasks" "github.com/christophe-duc/lazypodman/pkg/tasks"
"github.com/christophe-duc/lazypodman/pkg/utils" "github.com/christophe-duc/lazypodman/pkg/utils"
"github.com/fatih/color"
"github.com/jesseduffield/gocui"
"github.com/jesseduffield/yaml" "github.com/jesseduffield/yaml"
) )

View file

@ -5,8 +5,6 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/fatih/color"
"github.com/jesseduffield/gocui"
"github.com/christophe-duc/lazypodman/pkg/commands" "github.com/christophe-duc/lazypodman/pkg/commands"
"github.com/christophe-duc/lazypodman/pkg/config" "github.com/christophe-duc/lazypodman/pkg/config"
"github.com/christophe-duc/lazypodman/pkg/gui/panels" "github.com/christophe-duc/lazypodman/pkg/gui/panels"
@ -14,6 +12,8 @@ import (
"github.com/christophe-duc/lazypodman/pkg/gui/types" "github.com/christophe-duc/lazypodman/pkg/gui/types"
"github.com/christophe-duc/lazypodman/pkg/tasks" "github.com/christophe-duc/lazypodman/pkg/tasks"
"github.com/christophe-duc/lazypodman/pkg/utils" "github.com/christophe-duc/lazypodman/pkg/utils"
"github.com/fatih/color"
"github.com/jesseduffield/gocui"
"github.com/samber/lo" "github.com/samber/lo"
) )

View file

@ -8,8 +8,8 @@ import (
"os/signal" "os/signal"
"strings" "strings"
"github.com/fatih/color"
"github.com/christophe-duc/lazypodman/pkg/utils" "github.com/christophe-duc/lazypodman/pkg/utils"
"github.com/fatih/color"
) )
func (gui *Gui) runSubprocess(cmd *exec.Cmd) error { func (gui *Gui) runSubprocess(cmd *exec.Cmd) error {

View file

@ -5,9 +5,9 @@ import (
"sort" "sort"
"strings" "strings"
"github.com/jesseduffield/gocui"
"github.com/christophe-duc/lazypodman/pkg/gui/panels" "github.com/christophe-duc/lazypodman/pkg/gui/panels"
"github.com/christophe-duc/lazypodman/pkg/utils" "github.com/christophe-duc/lazypodman/pkg/utils"
"github.com/jesseduffield/gocui"
"github.com/samber/lo" "github.com/samber/lo"
"github.com/spkg/bom" "github.com/spkg/bom"
) )

View file

@ -3,8 +3,6 @@ package gui
import ( import (
"fmt" "fmt"
"github.com/fatih/color"
"github.com/jesseduffield/gocui"
"github.com/christophe-duc/lazypodman/pkg/commands" "github.com/christophe-duc/lazypodman/pkg/commands"
"github.com/christophe-duc/lazypodman/pkg/config" "github.com/christophe-duc/lazypodman/pkg/config"
"github.com/christophe-duc/lazypodman/pkg/gui/panels" "github.com/christophe-duc/lazypodman/pkg/gui/panels"
@ -12,6 +10,8 @@ import (
"github.com/christophe-duc/lazypodman/pkg/gui/types" "github.com/christophe-duc/lazypodman/pkg/gui/types"
"github.com/christophe-duc/lazypodman/pkg/tasks" "github.com/christophe-duc/lazypodman/pkg/tasks"
"github.com/christophe-duc/lazypodman/pkg/utils" "github.com/christophe-duc/lazypodman/pkg/utils"
"github.com/fatih/color"
"github.com/jesseduffield/gocui"
"github.com/samber/lo" "github.com/samber/lo"
) )