Skip to content

Commit

Permalink
temp test for attest handler
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <[email protected]>
  • Loading branch information
wagoodman committed Jul 5, 2023
1 parent d553ce2 commit 3ee176f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/syft/cli/ui/handle_attestation.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,16 @@ func (l attestLogFrame) Update(msg tea.Msg) (tea.Model, tea.Cmd) {

case attestLogFrameTickMsg:
l.lines = l.reader.Lines()
// TODO: remove me
fmt.Printf("lines: %#v\n", l.lines)

l.completed = progress.IsCompleted(l.prog)
err := l.prog.Error()
l.failed = err != nil && !progress.IsErrCompleted(err)

fmt.Printf("completed: %#v\n", l.completed)
fmt.Printf("failed: %#v\n", l.failed)

tickCmd := l.handleTick(msg)

return l, tickCmd
Expand Down

0 comments on commit 3ee176f

Please sign in to comment.