repository

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAddCmd

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

NewAddCmd creates a new command for added a skeleton repository to the kickoff config.

func NewCreateCmd

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

NewCreateCmd creates a command for creating a local skeleton repository.

func NewListCmd

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

NewListCmd creates a command for listing all configured skeleton repositories.

func NewRemoveCmd

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

NewRemoveCmd creates a command for removing skeleton repositories from the config.

Types

type AddOptions

type AddOptions struct {
	cli.IOStreams

	Config func() (*kickoff.Config, error)

	ConfigPath string
	RepoName   string
	RepoURL    string
	Revision   string
}

AddOptions holds the options for the add command.

func (*AddOptions) Run

func (o *AddOptions) Run() error

Run adds a skeleton repository to the kickoff config.

type CreateOptions

type CreateOptions struct {
	cli.IOStreams

	Config func() (*kickoff.Config, error)

	ConfigPath   string
	RepoName     string
	RepoDir      string
	SkeletonName string
}

CreateOptions holds the options for the create command.

func (*CreateOptions) Run

func (o *CreateOptions) Run() error

Run creates a new skeleton repository in the provided output directory and seeds it with a default skeleton.

type ListOptions

type ListOptions struct {
	cli.IOStreams

	Config func() (*kickoff.Config, error)

	Output string
}

ListOptions holds the options for the list command.

func (*ListOptions) Run

func (o *ListOptions) Run() error

Run lists all configured skeleton repositories.

type RemoveOptions

type RemoveOptions struct {
	cli.IOStreams

	Config func() (*kickoff.Config, error)

	ConfigPath string
	RepoName   string
}

RemoveOptions holds the options for the remove command.

func (*RemoveOptions) Run

func (o *RemoveOptions) Run() error

Run removes a skeleton repository from the config.

Jump to

Keyboard shortcuts

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