diff --git a/pkg/commands/image.go b/pkg/commands/image.go index a49b7588..6025214b 100644 --- a/pkg/commands/image.go +++ b/pkg/commands/image.go @@ -100,8 +100,8 @@ func (i *Image) RenderHistory() (string, error) { return utils.RenderList(layers, utils.WithHeader([]string{"ID", "TAG", "SIZE", "COMMAND"})) } -// GetImages returns a slice of docker images -func (c *DockerCommand) GetImages() ([]*Image, error) { +// RefreshImages returns a slice of docker images +func (c *DockerCommand) RefreshImages() ([]*Image, error) { images, err := c.Client.ImageList(context.Background(), types.ImageListOptions{}) if err != nil { return nil, err diff --git a/pkg/gui/images_panel.go b/pkg/gui/images_panel.go index 0da107fc..82a38177 100644 --- a/pkg/gui/images_panel.go +++ b/pkg/gui/images_panel.go @@ -156,7 +156,7 @@ func (gui *Gui) refreshImages() error { // TODO: leave this to DockerCommand func (gui *Gui) refreshStateImages() error { - Images, err := gui.DockerCommand.GetImages() + Images, err := gui.DockerCommand.RefreshImages() if err != nil { return err } diff --git a/pkg/gui/subprocess.go b/pkg/gui/subprocess.go index d6a29233..ea8f4636 100644 --- a/pkg/gui/subprocess.go +++ b/pkg/gui/subprocess.go @@ -70,7 +70,8 @@ func (gui *Gui) runCommand() error { fmt.Fprintf(os.Stdout, "\n%s", utils.ColoredString(gui.Tr.PressEnterToReturn, color.FgGreen)) - if _, err := fmt.Scanln(); err != nil { // wait for enter press + // wait for enter press + if _, err := fmt.Scanln(); err != nil { gui.Log.Error(err) }