mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
fixed all formatting errors
This commit is contained in:
parent
bb810d0523
commit
6677a039df
25 changed files with 122 additions and 122 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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{
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue