refactor: removed is_tty.

This commit is contained in:
2026-06-12 15:54:27 -04:00
parent 23b8c2dc67
commit d56f11250c
7 changed files with 15 additions and 16 deletions

View File

@@ -2,8 +2,10 @@ package main
import "core:encoding/json"
import "core:fmt"
import "core:os"
import "core:path/filepath"
import "core:strings"
import "core:terminal"
ListEntry :: struct {
Directory: string `json:"directory"`,
@@ -23,7 +25,7 @@ cmd_list :: proc(cmd: ^Command) {
}
defer delete(rows)
if is_tty() {
if terminal.is_terminal(os.stdout) {
headers := []string{"Directory", "Path"}
table_rows := make([dynamic][]string, 0, len(rows), context.temp_allocator)