cmd

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultYttCmd

func NewDefaultYttCmd() *cobra.Command

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

func ShowHelp

func ShowHelp(cmd *cobra.Command, args []string) error

func ShowSubcommands

func ShowSubcommands(cmd *cobra.Command, args []string) error

Types

type FmtOptions added in v0.20.0

type FmtOptions struct {
	Files      []string
	StrictYAML bool
	Debug      bool
}

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
	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

Jump to

Keyboard shortcuts

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