refactor: drop unused function
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
62441acf03
commit
930ff68bb2
|
@ -1,12 +1,10 @@
|
||||||
package formatter
|
package formatter
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/docker/cli/cli/command/formatter"
|
|
||||||
"github.com/docker/go-units"
|
"github.com/docker/go-units"
|
||||||
"github.com/olekukonko/tablewriter"
|
"github.com/olekukonko/tablewriter"
|
||||||
"github.com/schollz/progressbar/v3"
|
"github.com/schollz/progressbar/v3"
|
||||||
|
@ -16,10 +14,6 @@ func ShortenID(str string) string {
|
||||||
return str[:12]
|
return str[:12]
|
||||||
}
|
}
|
||||||
|
|
||||||
func Truncate(str string) string {
|
|
||||||
return fmt.Sprintf(`"%s"`, formatter.Ellipsis(str, 19))
|
|
||||||
}
|
|
||||||
|
|
||||||
func SmallSHA(hash string) string {
|
func SmallSHA(hash string) string {
|
||||||
return hash[:8]
|
return hash[:8]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue