create

package
v0.8.1-18-g5c23ec8d Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, opts *CreateOptions, args ...string) error

Create creates a library template.

func NewCmd

func NewCmd() *cobra.Command

Types

type CreateOptions

type CreateOptions struct {
	ProjectName     string `long:"project-name" usage:"Set the project name to the template"`
	LibraryName     string `long:"library-name" usage:"Set the library name to the template"`
	LibraryKName    string `long:"library-kname" usage:"Set the library kname to the template"`
	Version         string `long:"version" short:"v" usage:"Set the library version to the template"`
	Description     string `long:"description"  usage:"Set the description to the template"`
	AuthorName      string `long:"author-name" usage:"Set the author name to the template"`
	AuthorEmail     string `long:"author-email" usage:"Set the author email to the template"`
	InitialBranch   string `long:"initial-branch" usage:"Set the initial branch name to the template"`
	CopyrightHolder string `long:"copyright-holder" usage:"Set the copyright holder name to the template"`
	Origin          string `long:"origin" usage:"Source code origin URL"`
	NoProvideCMain  bool   `long:"no-provide-c-main" usage:"Do not provide C main to the template"`
	GitInit         bool   `long:"git-init" usage:"Init git through the creating library"`
	WithPatchdir    bool   `long:"patch-dir" usage:"provide patch directory to the template"`
	UpdateRefs      bool   `long:"update-refs" usage:"Softly pack the component so that it is available via kraft list"`
	ProjectPath     string `long:"project-path" usage:"Where to create library"`
}

func (*CreateOptions) Pre

func (*CreateOptions) Pre(cmd *cobra.Command, _ []string) error

func (*CreateOptions) Run

func (opts *CreateOptions) Run(ctx context.Context, args []string) error

Jump to

Keyboard shortcuts

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