cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrIllegalVersionFlagCombination is returned if mutual exclusive version
	// format flags are set.
	ErrIllegalVersionFlagCombination = errors.New("--short and --output can't be used together")
)

Functions

func NewCacheCmd

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

NewCacheCmd creates a command which provides subcommands for interacting with the kickoff cache.

func NewCompletionCmd

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

NewCompletionCmd creates a new command which can set up shell completion.

func NewConfigCmd

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

NewConfigCmd creates a new command which provides subcommands for manipulating and inspecting the kickoff config.

func NewGitignoreCmd

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

NewGitignoreCmd creates a new command which provides subcommands for inspecting gitignore templates provided by gitignore.io.

func NewInitCmd

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

NewInitCmd creates a new command which lets users interactively initialize the kickoff configuration.

func NewLicenseCmd

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

NewLicenseCmd creates a new command which provides subcommands for inspecting open source licenses provided by the GitHub Licenses API.

func NewProjectCmd

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

NewProjectCmd creates a new command which provides subcommands for working with projects.

func NewRepositoryCmd

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

NewRepositoryCmd creates a new command which provides subcommands for managing, creating and inspecting skeleton repositories.

func NewRootCmd

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

NewRootCmd creates the root command for kickoff.

func NewSkeletonCmd

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

NewSkeletonCmd creates a new command which provides subcommands for creating and inspecting project skeletons.

func NewVersionCmd

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

NewVersionCmd creates a command which can print the kickoff version.

Types

type InitOptions

type InitOptions struct {
	cli.IOStreams
	cmdutil.ConfigFlags
	cmdutil.TimeoutFlag

	GitignoreClient *gitignore.Client
	LicenseClient   *license.Client
}

InitOptions holds the options for the init command.

func (*InitOptions) Complete

func (o *InitOptions) Complete() (err error)

Complete completes the command options.

func (*InitOptions) Run

func (o *InitOptions) Run() error

Run runs the interactive configuration of kickoff.

type VersionOptions

type VersionOptions struct {
	cli.IOStreams
	cmdutil.OutputFlag

	Short bool
}

VersionOptions holds the options for the version command.

func (*VersionOptions) Run

func (o *VersionOptions) Run() error

Run prints the version in the provided output format.

func (*VersionOptions) Validate

func (o *VersionOptions) Validate() error

Validate validates the options before executing the command.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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