mirror of
https://github.com/anchore/syft
synced 2024-11-10 14:24:12 +00:00
Expose column index for UI handler consumers
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
This commit is contained in:
parent
c363b2b532
commit
4abffc8fbc
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