aboutsummaryrefslogtreecommitdiffstats
path: root/src/printer
diff options
context:
space:
mode:
authorMaurĂ­cio Antunes <mauricio.abreua@gmail.com>2022-10-30 15:20:31 -0300
committerMaurĂ­cio Antunes <mauricio.abreua@gmail.com>2022-10-30 15:20:31 -0300
commitfb8b6362094114e861406a1d30dc159772e9429c (patch)
tree0a333cf612c9108c1f4484a9d80ee60c1b07972a /src/printer
parent40a19b8b19ff2b3e63886de81b7d0921b02542d0 (diff)
feat: show exercise state when listing
Diffstat (limited to 'src/printer')
-rw-r--r--src/printer/list.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/printer/list.go b/src/printer/list.go
index bd65513..cd38c9a 100644
--- a/src/printer/list.go
+++ b/src/printer/list.go
@@ -10,9 +10,9 @@ import (
func PrintList(o io.Writer, exs []exercises.Exercise) {
t := table.NewWriter()
t.SetOutputMirror(o)
- t.AppendHeader(table.Row{"Name", "Path"})
+ t.AppendHeader(table.Row{"Name", "Path", "State"})
for _, ex := range exs {
- t.AppendRow(table.Row{ex.Name, ex.Path})
+ t.AppendRow(table.Row{ex.Name, ex.Path, ex.State()})
}
t.Render()
}