зеркало из https://github.com/docker/hub-tool.git
Merge pull request #148 from docker/fix-indent
Fix some indentation issues
This commit is contained in:
Коммит
3633a9001a
|
@ -204,7 +204,7 @@ func printConfig(out io.Writer, image *Image) error {
|
||||||
fmt.Fprintf(out, ansi.Title("Config:")+"\n")
|
fmt.Fprintf(out, ansi.Title("Config:")+"\n")
|
||||||
fmt.Fprintf(out, ansi.Key("MediaType:")+"\t%s\n", image.Manifest.Config.MediaType)
|
fmt.Fprintf(out, ansi.Key("MediaType:")+"\t%s\n", image.Manifest.Config.MediaType)
|
||||||
fmt.Fprintf(out, ansi.Key("Size:")+"\t\t%v\n", units.HumanSize(float64(image.Manifest.Config.Size)))
|
fmt.Fprintf(out, ansi.Key("Size:")+"\t\t%v\n", units.HumanSize(float64(image.Manifest.Config.Size)))
|
||||||
fmt.Fprintf(out, ansi.Key("Digest:")+"\t%s\n", image.Manifest.Config.Digest)
|
fmt.Fprintf(out, ansi.Key("Digest:")+"\t\t%s\n", image.Manifest.Config.Digest)
|
||||||
if len(image.Config.Config.Cmd) > 0 {
|
if len(image.Config.Config.Cmd) > 0 {
|
||||||
fmt.Fprintf(out, ansi.Key("Command:")+"\t%q\n", strings.TrimPrefix(strings.Join(image.Config.Config.Cmd, " "), "/bin/sh -c "))
|
fmt.Fprintf(out, ansi.Key("Command:")+"\t%q\n", strings.TrimPrefix(strings.Join(image.Config.Config.Cmd, " "), "/bin/sh -c "))
|
||||||
}
|
}
|
||||||
|
@ -256,7 +256,7 @@ func printLayers(out io.Writer, image *Image) error {
|
||||||
}
|
}
|
||||||
fmt.Fprintf(out, ansi.Key("MediaType:")+"\t%s\n", layer.MediaType)
|
fmt.Fprintf(out, ansi.Key("MediaType:")+"\t%s\n", layer.MediaType)
|
||||||
fmt.Fprintf(out, ansi.Key("Size:")+"\t\t%v\n", units.HumanSize(float64(layer.Size)))
|
fmt.Fprintf(out, ansi.Key("Size:")+"\t\t%v\n", units.HumanSize(float64(layer.Size)))
|
||||||
fmt.Fprintf(out, ansi.Key("Digest:")+"\t%s\n", layer.Digest)
|
fmt.Fprintf(out, ansi.Key("Digest:")+"\t\t%s\n", layer.Digest)
|
||||||
if len(image.Manifest.Layers) == len(history) {
|
if len(image.Manifest.Layers) == len(history) {
|
||||||
fmt.Fprintf(out, ansi.Key("Command:")+"\t%s\n", cleanCreatedBy(history[i].CreatedBy))
|
fmt.Fprintf(out, ansi.Key("Command:")+"\t%s\n", cleanCreatedBy(history[i].CreatedBy))
|
||||||
if history[i].Created != nil {
|
if history[i].Created != nil {
|
||||||
|
|
|
@ -13,7 +13,7 @@ Created: Less than a second ago
|
||||||
Config:
|
Config:
|
||||||
MediaType: mediatype/config
|
MediaType: mediatype/config
|
||||||
Size: 123B
|
Size: 123B
|
||||||
Digest: sha256:beef
|
Digest: sha256:beef
|
||||||
Command: "./cmd parameter"
|
Command: "./cmd parameter"
|
||||||
Entrypoint: "./entrypoint parameter"
|
Entrypoint: "./entrypoint parameter"
|
||||||
User: user
|
User: user
|
||||||
|
@ -30,6 +30,6 @@ Stop signal: SIGTERM
|
||||||
Layers:
|
Layers:
|
||||||
MediaType: mediatype/layer
|
MediaType: mediatype/layer
|
||||||
Size: 456B
|
Size: 456B
|
||||||
Digest: sha256:c0ffee
|
Digest: sha256:c0ffee
|
||||||
Command: apt-get install
|
Command: apt-get install
|
||||||
Created: Less than a second ago
|
Created: Less than a second ago
|
||||||
|
|
Загрузка…
Ссылка в новой задаче