From b3e5db93f7b59c7b80706ae30b505cb6b7945ec3 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Thu, 23 Jul 2026 13:47:25 +0200 Subject: cli: subcommand dispatch --- internal/cli/termwidth_other.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 internal/cli/termwidth_other.go (limited to 'internal/cli/termwidth_other.go') diff --git a/internal/cli/termwidth_other.go b/internal/cli/termwidth_other.go new file mode 100644 index 0000000..a44fc70 --- /dev/null +++ b/internal/cli/termwidth_other.go @@ -0,0 +1,11 @@ +//go:build !unix + +package cli + +import "os" + +// ttyWidth has no portable implementation outside unix; callers fall back +// to the $COLUMNS env var or a sane default. +func ttyWidth(f *os.File) int { + return 0 +} -- cgit v1.3