repository

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyRepositoryName = errors.New("repository name must not be empty")

	ErrEmptyRepositoryURL = errors.New("repository url must not be empty")
)

Functions

func NewAddCmd

func NewAddCmd() *cobra.Command

func NewCreateCmd

func NewCreateCmd() *cobra.Command

func NewListCmd

func NewListCmd(streams cli.IOStreams) *cobra.Command

func NewRemoveCmd

func NewRemoveCmd() *cobra.Command

Types

type AddOptions

type AddOptions struct {
	cmdutil.ConfigFlags

	RepoName string
	RepoURL  string
}

func (*AddOptions) Complete

func (o *AddOptions) Complete(args []string) error

func (*AddOptions) Run

func (o *AddOptions) Run() error

func (*AddOptions) Validate

func (o *AddOptions) Validate() error

type CreateOptions

type CreateOptions struct {
	OutputDir    string
	SkeletonName string
	Force        bool
}

func (*CreateOptions) Complete

func (o *CreateOptions) Complete(args []string) (err error)

func (*CreateOptions) Run

func (o *CreateOptions) Run() error

func (*CreateOptions) Validate

func (o *CreateOptions) Validate() error

type ListOptions

type ListOptions struct {
	cli.IOStreams
	cmdutil.ConfigFlags
}

func (*ListOptions) Run

func (o *ListOptions) Run() error

type RemoveOptions

type RemoveOptions struct {
	cmdutil.ConfigFlags

	RepoName string
}

func (*RemoveOptions) Complete

func (o *RemoveOptions) Complete(args []string) error

func (*RemoveOptions) Run

func (o *RemoveOptions) Run() error

func (*RemoveOptions) Validate

func (o *RemoveOptions) Validate() error

Jump to

Keyboard shortcuts

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