cmd

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClientConfigNotFound = errors.New(heredoc.Doc(`
		Stencil client config not found.
		Run "stencil config init" to initialize a new client config or
		Run "stencil help environment" for more information.
	`))
	ErrClientConfigHostNotFound = errors.New(heredoc.Doc(`
		Stencil client config "host" not found.
		Pass stencil server host with "--host" flag or 
		set host in stencil config.
		Run "stencil config <subcommand>" or
		"stencil help environment" for more information.
	`))
	ErrClientNotAuthorized = errors.New(heredoc.Doc(`
		Stencil auth error. Stencil requires an auth header.
		
		Run "stencil help auth" for more information.
	`))
)

Functions

func NamespaceCmd

func NamespaceCmd(cdk *CDK) *cobra.Command

func New

func New() *cobra.Command

New root command

func SchemaCmd

func SchemaCmd(cdk *CDK) *cobra.Command

func SearchCmd

func SearchCmd(cdk *CDK) *cobra.Command

func ServerCommand

func ServerCommand() *cobra.Command

Types

type CDK

type CDK struct {
	Config *cmdx.Config
}

type ClientConfig

type ClientConfig struct {
	Host string `yaml:"host" cmdx:"host"`
}

Jump to

Keyboard shortcuts

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