support

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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