cmd

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2025 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigName = ".tp.toml"
View Source
const TpDir = "gh-tp"

Variables

View Source
var (
	MaxWidth int

	Verbose bool
	Version string
	Date    string
	Commit  string
	BuiltBy string

	Logger *log.Logger
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type ConfigFile added in v0.3.0

type ConfigFile struct {
	Name   string
	Path   string
	Params ConfigParams
}

type ConfigParams added in v0.3.0

type ConfigParams struct {
	Binary   string `` /* 165-byte string literal not displayed */
	PlanFile string `toml:"planFile" comment:"planFile: (type: string) The name of the plan file created by 'gh tp'." validate:"required"`
	MdFile   string `toml:"mdFile" comment:"mdFile: (type: string) The name of the Markdown file created by 'gh tp'." validate:"required"`
	Verbose  bool   `toml:"verbose" comment:"verbose: (type: bool) Enable Verbose Logging. Default is false." validate:"boolean"`
}

type SyntaxHighlight

type SyntaxHighlight string
const (
	SyntaxHighlightTerraform SyntaxHighlight = "terraform"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL