mirror of
https://github.com/anchore/syft
synced 2024-11-10 14:24:12 +00:00
Merge pull request #379 from anchore/fix-column-mismatch
Expose column index for UI handler consumers
This commit is contained in:
commit
8c178c497e
1 changed files with 4 additions and 1 deletions
|
@ -25,15 +25,18 @@ const maxBarWidth = 50
|
|||
const statusSet = common.SpinnerDotSet // SpinnerCircleOutlineSet
|
||||
const completedStatus = "✔" // "●"
|
||||
const tileFormat = color.Bold
|
||||
const statusTitleTemplate = " %s %-31s "
|
||||
const interval = 150 * time.Millisecond
|
||||
|
||||
// StatusTitleColumn is the column index in a given row where status text will be displayed.
|
||||
const StatusTitleColumn = 31
|
||||
|
||||
var (
|
||||
auxInfoFormat = color.HEX("#777777")
|
||||
dockerPullCompletedColor = color.HEX("#fcba03")
|
||||
dockerPullDownloadColor = color.HEX("#777777")
|
||||
dockerPullExtractColor = color.White
|
||||
dockerPullStageChars = strings.Split("▁▃▄▅▆▇█", "")
|
||||
statusTitleTemplate = fmt.Sprintf(" %%s %%-%ds ", StatusTitleColumn)
|
||||
)
|
||||
|
||||
// startProcess is a helper function for providing common elements for long-running UI elements (such as a
|
||||
|
|
Loading…
Reference in a new issue