packcmd

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func New

func New(ctx context.Context) *cobra.Command

Types

type PackFormat

type PackFormat string
const (
	PackFormatTgz PackFormat = "tgz"
	PackFormatZip PackFormat = "zip"
)

func (*PackFormat) Set

func (e *PackFormat) Set(v string) error

Set must have pointer receiver so it doesn't change the value of a copy

func (*PackFormat) String

func (e *PackFormat) String() string

String is used both by fmt.Print and by Cobra in help text

func (*PackFormat) Type

func (e *PackFormat) Type() string

Type is only used in help text

type PackOptions

type PackOptions struct {
	FileName      string
	Prefix        string
	IncludeSource bool
	Format        PackFormat
}

Jump to

Keyboard shortcuts

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