create

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagAuthor           = "author"
	FlagTitle            = "title"
	FlagDescription      = "description"
	FlagReleaseNotes     = "releaseNotes"
	FlagReleaseNotesFile = "releaseNotesFile"
)

Variables

This section is empty.

Functions

func GenerateNuSpec

func GenerateNuSpec(opts *NuPkgCreateOptions) (string, error)

func NewCmdCreate

func NewCmdCreate(f factory.Factory) *cobra.Command

func PromptMissing

func PromptMissing(opts *NuPkgCreateOptions) error

Types

type NuPkgCreateFlags

type NuPkgCreateFlags struct {
	Author           *flag.Flag[[]string] // this need to be multiple and default to current user
	Title            *flag.Flag[string]
	Description      *flag.Flag[string]
	ReleaseNotes     *flag.Flag[string]
	ReleaseNotesFile *flag.Flag[string]
}

func NewNuPkgCreateFlags

func NewNuPkgCreateFlags() *NuPkgCreateFlags

type NuPkgCreateOptions

type NuPkgCreateOptions struct {
	*NuPkgCreateFlags
	*pack.PackageCreateOptions
}

Jump to

Keyboard shortcuts

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