skeleton

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateCmd

func NewCreateCmd(f *cmdutil.Factory) *cobra.Command

NewCreateCmd creates a command for creating project skeletons.

func NewListCmd

func NewListCmd(f *cmdutil.Factory) *cobra.Command

NewListCmd creates a command for listing available project skeletons.

func NewShowCmd

func NewShowCmd(f *cmdutil.Factory) *cobra.Command

NewShowCmd creates a command for inspecting project skeletons.

Types

type CreateOptions

type CreateOptions struct {
	cli.IOStreams

	Repository func(...string) (kickoff.Repository, error)

	RepoName     string
	SkeletonName string
}

CreateOptions holds the options for the create command.

func (*CreateOptions) Run

func (o *CreateOptions) Run() error

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

type ListOptions

type ListOptions struct {
	cli.IOStreams

	Repository func(...string) (kickoff.Repository, error)

	Output    string
	RepoNames []string
}

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

type ShowOptions struct {
	cli.IOStreams

	Repository func(...string) (kickoff.Repository, error)

	FilePath     string
	Output       string
	RepoNames    []string
	SkeletonName string
}

ShowOptions holds options for the show command.

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