support

package
v1.6.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FlagId        = "id"
	FlagVersion   = "version"
	FlagBasePath  = "base-path"
	FlagOutFolder = "out-folder"
	FlagInclude   = "include"
	FlagVerbose   = "verbose"
	FlagOverwrite = "overwrite"
)

Variables

This section is empty.

Functions

func BuildOutFileName

func BuildOutFileName(packageType, id, version string) string

func BuildPackage

func BuildPackage(opts *PackageCreateOptions, outFileName string) error

func BuildTimestampSemVer

func BuildTimestampSemVer(dateTime time.Time) string

func PackageCreatePromptMissing

func PackageCreatePromptMissing(opts *PackageCreateOptions) error

func VerboseOut

func VerboseOut(out io.Writer, isVerbose bool, messageTemplate string, messageArgs ...any)

Types

type PackageCreateFlags

type PackageCreateFlags struct {
	Id        *flag.Flag[string]
	Version   *flag.Flag[string]
	BasePath  *flag.Flag[string]
	OutFolder *flag.Flag[string]
	Include   *flag.Flag[[]string]
	Verbose   *flag.Flag[bool]
	Overwrite *flag.Flag[bool]
}

func NewPackageCreateFlags

func NewPackageCreateFlags() *PackageCreateFlags

type PackageCreateOptions

type PackageCreateOptions struct {
	*PackageCreateFlags
	Writer   io.Writer
	Ask      question.Asker
	NoPrompt bool
	CmdPath  string
}

func NewPackageCreateOptions

func NewPackageCreateOptions(f factory.Factory, flags *PackageCreateFlags, cmd *cobra.Command) *PackageCreateOptions

Jump to

Keyboard shortcuts

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