MCPcopy Create free account
hub / github.com/driangle/taskmd / printVerifyStep

Function printVerifyStep

apps/cli/internal/cli/verify.go:163–183  ·  view source on GitHub ↗
(step verify.StepResult, r *lipgloss.Renderer)

Source from the content-addressed store, hash-verified

161}
162
163func printVerifyStep(step verify.StepResult, r *lipgloss.Renderer) {
164 statusStr := formatVerifyStatus(step.Status, r)
165 switch step.Type {
166 case "bash":
167 fmt.Printf(" %s %s\n", statusStr, step.Command)
168 if step.Dir != "" {
169 fmt.Printf(" dir: %s\n", formatDim(step.Dir, r))
170 }
171 if step.Status == verify.StatusFail {
172 printFailureOutput(step, r)
173 }
174 case "assert":
175 fmt.Printf(" %s %s\n", statusStr, step.Check)
176 default:
177 label := step.Type
178 if step.Warning != "" {
179 label = step.Warning
180 }
181 fmt.Printf(" %s %s\n", statusStr, label)
182 }
183}
184
185func printFailureOutput(step verify.StepResult, r *lipgloss.Renderer) {
186 printDimLines := func(s string) {

Callers 1

printVerifyTableFunction · 0.85

Calls 3

formatVerifyStatusFunction · 0.85
formatDimFunction · 0.85
printFailureOutputFunction · 0.85

Tested by

no test coverage detected