mirror of
https://github.com/anchore/syft.git
synced 2025-11-19 01:13:18 +01:00
* add bubbletea UI Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * swap pipeline to go 1.20.x and add attest guard for cosign binary Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update note in developing.md about the required golang version Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix merge conflict for windows path handling Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * temp test for attest handler Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add addtional test iterations for background reader Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <alex.goodman@anchore.com> Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
20 lines
483 B
Go
20 lines
483 B
Go
package ui
|
|
|
|
import "github.com/anchore/bubbly/bubbles/taskprogress"
|
|
|
|
func (m Handler) newTaskProgress(title taskprogress.Title, opts ...taskprogress.Option) taskprogress.Model {
|
|
tsk := taskprogress.New(m.Running, opts...)
|
|
|
|
tsk.HideProgressOnSuccess = true
|
|
tsk.HideStageOnSuccess = true
|
|
tsk.WindowSize = m.WindowSize
|
|
tsk.TitleWidth = m.Config.TitleWidth
|
|
tsk.TitleOptions = title
|
|
|
|
if m.Config.AdjustDefaultTask != nil {
|
|
tsk = m.Config.AdjustDefaultTask(tsk)
|
|
}
|
|
|
|
return tsk
|
|
}
|