mirror of
https://github.com/containers/skopeo.git
synced 2025-07-15 23:36:28 +00:00
inspect.go: inspect env variables
Update the inspect command to show the environment variables Signed-off-by: José Guilherme Vanz <jvanz@jvanz.com>
This commit is contained in:
parent
ee9e9dfc89
commit
a778e595b3
@ -28,6 +28,7 @@ type inspectOutput struct {
|
|||||||
Architecture string
|
Architecture string
|
||||||
Os string
|
Os string
|
||||||
Layers []string
|
Layers []string
|
||||||
|
Env []string
|
||||||
}
|
}
|
||||||
|
|
||||||
type inspectOptions struct {
|
type inspectOptions struct {
|
||||||
@ -142,6 +143,7 @@ func (opts *inspectOptions) run(args []string, stdout io.Writer) (retErr error)
|
|||||||
Architecture: imgInspect.Architecture,
|
Architecture: imgInspect.Architecture,
|
||||||
Os: imgInspect.Os,
|
Os: imgInspect.Os,
|
||||||
Layers: imgInspect.Layers,
|
Layers: imgInspect.Layers,
|
||||||
|
Env: imgInspect.Env,
|
||||||
}
|
}
|
||||||
outputData.Digest, err = manifest.Digest(rawManifest)
|
outputData.Digest, err = manifest.Digest(rawManifest)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user