update

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package update implements the update command for godyl. It provides functionality to update the application itself to the latest version.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(cfg *config.Config, files config.Embedded) *cobra.Command

NewCommand creates a cobra.Command instance containing the update command.

Types

type Command

type Command struct {
	// Command is the update cobra.Command instance
	Command *cobra.Command
}

Command encapsulates the update cobra command with its associated config and embedded files.

func NewUpdateCommand

func NewUpdateCommand(cfg *config.Config, files config.Embedded) *Command

NewUpdateCommand creates a Command for updating the application to the latest version.

func (*Command) Flags

func (cmd *Command) Flags()

Flags adds update-specific flags to the command.

Jump to

Keyboard shortcuts

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