Documentation ¶
Index ¶
- Constants
- func BuildOutFileName(packageType, id, version string) string
- func BuildPackage(opts *PackageCreateOptions, outFileName string) error
- func BuildTimestampSemVer(dateTime time.Time) string
- func PackageCreatePromptMissing(opts *PackageCreateOptions) error
- func VerboseOut(out io.Writer, isVerbose bool, messageTemplate string, messageArgs ...any)
- type PackageCreateFlags
- type PackageCreateOptions
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 BuildPackage ¶
func BuildPackage(opts *PackageCreateOptions, outFileName string) error
func BuildTimestampSemVer ¶
func PackageCreatePromptMissing ¶
func PackageCreatePromptMissing(opts *PackageCreateOptions) error
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
Click to show internal directories.
Click to hide internal directories.