You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
474 B
Go
30 lines
474 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/mattn/go-colorable"
|
|
|
|
"github.com/hashicorp/terraform-plugin-docs/internal/cmd"
|
|
)
|
|
|
|
func main() {
|
|
name := "tfplugindocs"
|
|
version := name + " Version " + version
|
|
if commit != "" {
|
|
version += " from commit " + commit
|
|
}
|
|
|
|
os.Exit(cmd.Run(
|
|
name,
|
|
version,
|
|
os.Args[1:],
|
|
os.Stdin,
|
|
colorable.NewColorableStdout(),
|
|
colorable.NewColorableStderr(),
|
|
))
|
|
}
|