update

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package update provides configuration and flags for the `godyl update` command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flags

func Flags(cmd *cobra.Command)

Flags adds the flags for the `godyl update` command to the provided Cobra command.

Types

type Update

type Update struct {
	// Tracker embed the common tracker configuration, allowing to tracker
	// whether configuration values have been explicitly set or defaulted
	shared.Tracker `mapstructure:"-" yaml:"-"`

	// Version is the version to update to
	Version string `mapstructure:"version" yaml:"version"`

	// Pre indicates whether to allow pre-release versions
	Pre bool `mapstructure:"pre" yaml:"pre"`

	// Check indicates whether to only check for updates without applying them
	Check bool `mapstructure:"check" yaml:"check"`

	// Cleanup indicates whether to clean up old versions after updating
	Cleanup bool `mapstructure:"cleanup" yaml:"cleanup"`

	// Force indicates whether to force the update, ignoring any checks
	Force bool `mapstructure:"force" yaml:"force"`
}

Update represents the configuration for the `update` command.

func (Update) ToCommon

func (u Update) ToCommon() shared.Common

ToCommon converts the Update configuration to a shared.Common instance.

Jump to

Keyboard shortcuts

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