Documentation
¶
Overview ¶
Package cli implements the command-line interface for the tgen application. It defines the command routing, flag parsing, and wires together the parsing and rendering logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGoCommand ¶
NewGoCommand returns the "go" subcommand.
TODO #43: Add an option to specify the Go package name.
func NewRootCommand ¶
NewRootCommand returns the primary application command ("tgen").
Types ¶
type VersionMessage ¶ added in v0.1.1
type VersionMessage struct {
// contains filtered or unexported fields
}
VersionMessage formats binary metadata for the --version flag output.
func NewVersionMessage ¶ added in v0.1.1
func NewVersionMessage(m meta.Meta) VersionMessage
NewVersionMessage creates a VersionMessage.
func (VersionMessage) String ¶ added in v0.1.1
func (v VersionMessage) String() string
String returns the formatted version string.
Click to show internal directories.
Click to hide internal directories.