Documentation ¶
Overview ¶
Package cmd is home to the full set of ytt's "commands" -- instances of cobra.Command (not to be confused with ./cmd which contains the bootstrapping for executing ytt in various environments).
A cobra.Command is the starting point of execution.
For a list of commands run:
$ ytt help
The default command is "template".
Index ¶
- func NewCmd(o *template.Options) *cobra.Command
- func NewDefaultYttCmd() *cobra.Command
- func NewFmtCmd(o *FmtOptions) *cobra.Command
- func NewVersionCmd(o *VersionOptions) *cobra.Command
- func NewWebsiteCmd(o *WebsiteOptions) *cobra.Command
- func NewYttCmd(o *YttOptions) *cobra.Command
- type FmtOptions
- type VersionOptions
- type WebsiteOptions
- type YttOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmd ¶ added in v0.41.0
NewCmd construct main ytt command. It has been moved out of "template" package so that "template" package does not carry dependency on cobra. This is desirable for users who use ytt as a library.
func NewDefaultYttCmd ¶
func NewFmtCmd ¶ added in v0.20.0
func NewFmtCmd(o *FmtOptions) *cobra.Command
func NewVersionCmd ¶
func NewVersionCmd(o *VersionOptions) *cobra.Command
func NewWebsiteCmd ¶ added in v0.12.0
func NewWebsiteCmd(o *WebsiteOptions) *cobra.Command
func NewYttCmd ¶
func NewYttCmd(o *YttOptions) *cobra.Command
Types ¶
type FmtOptions ¶ added in v0.20.0
func NewFmtOptions ¶ added in v0.20.0
func NewFmtOptions() *FmtOptions
func (*FmtOptions) Run ¶ added in v0.20.0
func (o *FmtOptions) Run() error
type VersionOptions ¶
type VersionOptions struct{}
func NewVersionOptions ¶
func NewVersionOptions() *VersionOptions
func (*VersionOptions) Run ¶
func (o *VersionOptions) Run() error
type WebsiteOptions ¶ added in v0.12.0
type WebsiteOptions struct { ListenAddr string RedirectToHTTPS bool BinaryPath string CheckCookie bool }
func NewWebsiteOptions ¶ added in v0.12.0
func NewWebsiteOptions() *WebsiteOptions
func (*WebsiteOptions) Run ¶ added in v0.12.0
func (o *WebsiteOptions) Run() error
func (*WebsiteOptions) Server ¶ added in v0.12.0
func (o *WebsiteOptions) Server() *website.Server
type YttOptions ¶
type YttOptions struct{}
func NewDefaultYttOptions ¶
func NewDefaultYttOptions() *YttOptions
Directories ¶
Path | Synopsis |
---|---|
Package template implements the "template" command (not to be confused with "pkg/template" home of the templating mechanism itself).
|
Package template implements the "template" command (not to be confused with "pkg/template" home of the templating mechanism itself). |
Package ui provides a thin abstraction over user input and output (typically, a tty device).
|
Package ui provides a thin abstraction over user input and output (typically, a tty device). |
Click to show internal directories.
Click to hide internal directories.