MCPcopy
hub / github.com/hashicorp/hcl / init

Function init

cmd/hclfmt/main.go:35–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33var changed []string
34
35func init() {
36 color := term.IsTerminal(int(os.Stderr.Fd()))
37 w, _, err := term.GetSize(int(os.Stdout.Fd()))
38 if err != nil {
39 w = 80
40 }
41 diagWr = hcl.NewDiagnosticTextWriter(os.Stderr, parser.Files(), uint(w), color)
42}
43
44func main() {
45 err := realmain()

Callers

nothing calls this directly

Calls 1

FilesMethod · 0.80

Tested by

no test coverage detected