Files
threshold/internal/cmd/base/ui.go
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
342 B
Go
Raw Normal View History

2023-02-02 17:15:17 -08:00
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
package base
import (
"os"
"github.com/mitchellh/cli"
"golang.org/x/term"
)
2020-08-10 17:15:02 -04:00
type BoundaryUI struct {
cli.Ui
Format string
}
var TermWidth uint = 80
func init() {
width, _, err := term.GetSize(int(os.Stdin.Fd()))
if err == nil {
TermWidth = uint(width)
}
}