skeleton

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateCmd

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

NewCreateCmd creates a command for creating project skeletons.

func NewListCmd

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

NewListCmd creates a command for listing available project skeletons.

func NewShowCmd

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

NewShowCmd creates a command for inspecting project skeletons.

Types

type CreateOptions

type CreateOptions struct {
	cli.IOStreams
	OutputDir string
	Force     bool
}

CreateOptions holds the options for the create command.

func (*CreateOptions) Complete

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

Complete completes the create options.

func (*CreateOptions) Run

func (o *CreateOptions) Run() error

Run creates a new project skeleton in the provided output directory.

func (*CreateOptions) Validate

func (o *CreateOptions) Validate() error

Validate validates the create options.

type ListOptions

type ListOptions struct {
	cli.IOStreams
	cmdutil.ConfigFlags
	cmdutil.TimeoutFlag
}

ListOptions holds the options for the list command.

func (*ListOptions) Run

func (o *ListOptions) Run() error

Run lists all project skeletons available in the configured skeleton repositories.

type ShowOptions

ShowOptions holds options for the show command.

func (*ShowOptions) Complete

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

Complete completes the show options.

func (*ShowOptions) Run

func (o *ShowOptions) Run() error

Run prints information about a project skeleton in the output format specified by the user.

Jump to

Keyboard shortcuts

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