ui

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidServiceName = errors.New("invalid service name")
	ErrInvalidSrc         = errors.New("invalid source path")
	ErrInvalidDst         = errors.New("invalid destination path")
)

CLISet Cli wire groupe

LibSet Library wire groupe

Functions

func NewRootCmd

func NewRootCmd(h *Handler) *cobra.Command

NewRootCmd Cobra Root Cmd Constructor

Types

type Cobra

type Cobra struct {
	// contains filtered or unexported fields
}

Cobra Cobra UI

func NewCLI

func NewCLI(rootCmd *cobra.Command) *Cobra

NewCLI CLI Constructor

func (*Cobra) Execute

func (c *Cobra) Execute() error

Execute Execute

func (*Cobra) SetArgs

func (c *Cobra) SetArgs(a []string)

SetArgs Set args

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler Handler

func NewHandler

func NewHandler(commands *commands.Commands) *Handler

NewHandler Handler Constructor

func (*Handler) Create

func (h *Handler) Create() *cobra.Command

Create Create Skeleton

type HandlerLibrary

type HandlerLibrary struct {
	// contains filtered or unexported fields
}

HandlerLibrary HandlerLibrary

func NewHandlerLibrary

func NewHandlerLibrary(commands *commands.Commands) *HandlerLibrary

NewHandlerLibrary HandlerLibrary Constructor

func (*HandlerLibrary) Create

func (h *HandlerLibrary) Create(serviceName string, src string, dst string, values string, isForce bool) error

Create Create Skeleton

type Library

type Library struct {
	// contains filtered or unexported fields
}

Library Library UI

func NewLibrary

func NewLibrary(h *HandlerLibrary) *Library

NewCLI CLI Constructor

func (*Library) Create

func (c *Library) Create(serviceName string, src string, dst string, values string, isForce bool) error

Create Create

Jump to

Keyboard shortcuts

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