cli

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 11 Imported by: 0

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

func NewGoCommand(m meta.Meta) *cobra.Command

NewGoCommand returns the "go" subcommand.

TODO #43: Add an option to specify the Go package name.

func NewRootCommand

func NewRootCommand() *cobra.Command

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.

Jump to

Keyboard shortcuts

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