wagoodman / dive

A tool for exploring each layer in a docker image
MIT License
44.55k stars 1.69k forks source link

Feat: add ctrl-z support #447

Closed yurenchen000 closed 1 year ago

yurenchen000 commented 1 year ago

implement feat-req https://github.com/wagoodman/dive/issues/297

Changes:

only tested on ubuntu22, build with go1.18

tonymet commented 1 year ago

i pulled your branch, built, tested and it works for me.

BUILD

$ make build

RUN / TEST

$ ./dist/dive_linux_amd64/dive alpine

RESULTS

TEST Environment

$ git log -1
6032f68 - (HEAD, yurenchen0000/feat-ctrl-z) feat: add ctrl+z support (17 hours ago) <chen>

$ go version
go version go1.17.7 linux/amd64

$ cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"

$ uname -a 
Linux ip-172-31-38-22.us-west-2.compute.internal 4.14.305-227.531.amzn2.x86_64 #1 SMP Tue Feb 14 09:55:28 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux