update

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package update holds the self-update logic shared by the framework adapters' update commands, driven through the updater.Updater interface so any install method (Homebrew, `go install`, GitHub release) works.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Requested added in v0.0.3

func Requested(args []string) (bool, error)

Requested reports whether args contains the hidden --self-update flag, scanning only up to a "--" terminator. Like completion preflight, the scan runs before parsing so self-update works even in grammars whose validation would otherwise demand arguments or a subcommand. The flag is mutually exclusive with everything else: when it appears alongside any other argument, the first result is still true and the error explains the conflict.

func Run

func Run(ctx context.Context, app *conductor.Runtime, opts Options) error

Run checks for or installs an update via App.Updater, which must implement updater.Updater (every clive updater config does). Tools distributed another way provide their own update command instead.

Types

type Options

type Options struct {
	Check       bool
	Stable      bool
	Dev         bool
	NoUninstall bool
}

Options are the standard update-command flags. Stable and NoUninstall only influence the Homebrew method; the other methods treat stable as the default channel and manage no conflicting copies.

Jump to

Keyboard shortcuts

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