mirror of
https://github.com/sbrow/envr.git
synced 2026-06-27 10:38:33 -04:00
test: Added missing tests.
This commit is contained in:
@@ -2,6 +2,7 @@ package main
|
||||
|
||||
import "core:encoding/json"
|
||||
import "core:fmt"
|
||||
import "core:io"
|
||||
import "core:os"
|
||||
import "core:strings"
|
||||
import "core:terminal"
|
||||
@@ -80,7 +81,8 @@ cmd_sync :: proc(cmd: ^Command) {
|
||||
append(&table_rows, row_slice)
|
||||
}
|
||||
|
||||
render_table(headers, table_rows[:])
|
||||
w := io.to_writer(os.to_writer(os.stdout))
|
||||
render_table(w, headers, table_rows[:])
|
||||
} else {
|
||||
data, marshal_err := json.marshal(results[:])
|
||||
if marshal_err != nil {
|
||||
|
||||
Reference in New Issue
Block a user