Documentation
¶
Index ¶
- func AddCmd() *cobra.Command
- func InitCmd() *cobra.Command
- func NewCompletionCommand() *cobra.Command
- func NewReleaseCommand() *cobra.Command
- func NewReleaseNotesCommand() *cobra.Command
- func NewStatusCommand() *cobra.Command
- func NewUpgradeCommand(versionInfo VersionInfo) *cobra.Command
- func NewVersionCommand() *cobra.Command
- func PrintJSON(w io.Writer, data interface{}) error
- func PrintKeyValue(w io.Writer, key, value string, quiet bool)
- func PrintSuccess(w io.Writer, msg string, quiet bool)
- func RegisterPackageCompletions(cmd *cobra.Command, flagName string)
- type AddOptions
- type GlobalFlags
- type InitOptions
- type ReleaseNotesOptions
- type ReleaseOptions
- type StatusOptions
- type UpgradeOptions
- type VersionCommandOptions
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCompletionCommand ¶
NewCompletionCommand creates the completion command for shell completions.
func NewReleaseCommand ¶
NewReleaseCommand creates the release command
func NewReleaseNotesCommand ¶
NewReleaseNotesCommand creates the release-notes command
func NewStatusCommand ¶
NewStatusCommand creates the status command
func NewUpgradeCommand ¶
func NewUpgradeCommand(versionInfo VersionInfo) *cobra.Command
NewUpgradeCommand creates the upgrade command
func NewVersionCommand ¶
NewVersionCommand creates the version command
func PrintKeyValue ¶
PrintKeyValue outputs a key-value pair respecting the quiet flag
func PrintSuccess ¶
PrintSuccess outputs a success message respecting the quiet flag
func RegisterPackageCompletions ¶
RegisterPackageCompletions registers package name completions for a command flag. This enables tab-completion of package names from the Shipyard configuration.
Types ¶
type AddOptions ¶
type AddOptions struct {
Packages []string
Type string
Summary string
Metadata map[string]string
Timestamp time.Time // For testing
JSON bool // Output in JSON format
Quiet bool // Suppress output
}
AddOptions holds the options for the add command
type GlobalFlags ¶
GlobalFlags represents the global flags that can be inherited by all commands
func GetGlobalFlags ¶
func GetGlobalFlags(cmd *cobra.Command) GlobalFlags
GetGlobalFlags extracts global flags from the root command
type InitOptions ¶
type InitOptions struct {
Force bool
Remote string
Yes bool // Skip prompts and use defaults
JSON bool // Output in JSON format
Quiet bool // Suppress output
}
InitOptions contains options for the init command
type ReleaseNotesOptions ¶
type ReleaseNotesOptions struct {
Package string
Output string
Version string
AllVersions bool
MetadataFilter []string
Template string
JSON bool // Output in JSON format
Quiet bool // Suppress output
}
ReleaseNotesOptions holds options for the release-notes command
type ReleaseOptions ¶
type ReleaseOptions struct {
Package string
Draft bool
Prerelease bool
Tag string
JSON bool // Output in JSON format
Quiet bool // Suppress output
}
ReleaseOptions holds options for the release command
type StatusOptions ¶
StatusOptions holds the options for the status command
type UpgradeOptions ¶
type UpgradeOptions struct {
Yes bool // Skip confirmation
Version string // Specific version (default: latest)
Force bool // Upgrade even if on latest
DryRun bool // Show plan without executing
JSON bool // Output in JSON format
Quiet bool // Suppress output
}
UpgradeOptions contains options for the upgrade command
type VersionCommandOptions ¶
type VersionCommandOptions struct {
Preview bool // --preview: Show changes without applying
NoCommit bool // --no-commit: Skip git commit
NoTag bool // --no-tag: Skip git tag creation
Packages []string // --package: Filter to specific packages
Verbose bool // --verbose: Show detailed output
}
VersionCommandOptions holds options for the version command
type VersionInfo ¶
VersionInfo contains build version information