go fmt
This commit is contained in:
parent
51c099c18c
commit
4c4b3c154a
1 changed files with 13 additions and 14 deletions
|
@ -1,8 +1,8 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/fsouza/go-dockerclient"
|
||||
"github.com/dustin/go-humanize"
|
||||
"github.com/fsouza/go-dockerclient"
|
||||
|
||||
"bytes"
|
||||
"crypto/sha256"
|
||||
|
@ -513,10 +513,10 @@ func SanitizeCommand(CommandStr string,MaxLength int) string {
|
|||
temp := CommandStr
|
||||
|
||||
// remove prefixes that don't add meaning
|
||||
if(strings.HasPrefix(temp,"/bin/sh -c")) {
|
||||
if strings.HasPrefix(temp, "/bin/sh -c") {
|
||||
temp = strings.TrimSpace(temp[10:])
|
||||
}
|
||||
if(strings.HasPrefix(temp,"#(nop)")) {
|
||||
if strings.HasPrefix(temp, "#(nop)") {
|
||||
temp = strings.TrimSpace(temp[6:])
|
||||
}
|
||||
|
||||
|
@ -530,7 +530,6 @@ func SanitizeCommand(CommandStr string,MaxLength int) string {
|
|||
return truncate(temp, MaxLength)
|
||||
}
|
||||
|
||||
|
||||
func init() {
|
||||
parser.AddCommand("images",
|
||||
"Visualize docker images.",
|
||||
|
|
Loading…
Reference in a new issue