cli

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// BasicCmdGroup groups basic commands
	BasicCmdGroup = "\nBasic Commands"
	// SettingsCmdGroup groups settings
	SettingsCmdGroup = "\nSettings Commands"
	// ShowCmdGroup groups basic show commands
	ShowCmdGroup = "\nContent Creation Commands"
	// ShowMgmtCmdGroup groups advanced show commands
	ShowMgmtCmdGroup = "\nContent Management Commands"
)

Variables

This section is empty.

Functions

func AuthCommand

func AuthCommand(c *cli.Context) error

AuthCommand logs into the PodOps service and validates the token

func BuildCommand

func BuildCommand(c *cli.Context) error

BuildCommand starts a new build of the feed

func CreateCommand

func CreateCommand(c *cli.Context) error

CreateCommand creates a resource from a file, directory or URL

func Hack

func Hack(c *cli.Context) error

Hack hacks the heck

func ListProductionCommand

func ListProductionCommand(c *cli.Context) error

ListProductionCommand requests a new show

func LogoutCommand

func LogoutCommand(c *cli.Context) error

LogoutCommand clears all session information

func NewProductionCommand

func NewProductionCommand(c *cli.Context) error

NewProductionCommand requests a new show

func NoOpCommand

func NoOpCommand(c *cli.Context) error

NoOpCommand is just a placeholder

func PrintError

func PrintError(c *cli.Context, err error)

PrintError formats a CLI error and prints it

func SetProductionCommand

func SetProductionCommand(c *cli.Context) error

SetProductionCommand lists the current show/production, switch to another show/production

func TemplateCommand

func TemplateCommand(c *cli.Context) error

TemplateCommand creates a resource template with all default values

func UpdateCommand

func UpdateCommand(c *cli.Context) error

UpdateCommand updates a resource from a file, directory or URL

Types

type ResourceLoaderFunc

type ResourceLoaderFunc func(data []byte) (interface{}, error)

ResourceLoaderFunc implements loading of resources

Jump to

Keyboard shortcuts

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