upgrade

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package upgrade implements the top-level CLI self-upgrade command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(deps cliruntime.Deps) *cobra.Command

New returns the upgrade command.

func PrintAPIInstructionNotices added in v0.1.0

func PrintAPIInstructionNotices(cmd *cobra.Command, deps cliruntime.Deps)

PrintAPIInstructionNotices prints a non-blocking upgrade suggestion or a deprecation warning based on the most recent VOL-180 instructions observed on this invocation's API responses (api.LastInstructions). This replaces the previous GitHub-release polling notice (VOL-168): the API is now the sole source of truth for whether/how loudly to nudge an upgrade, and the check adds no extra network round-trip — it only reads headers the command already received.

A command that made no API call (help, version, completion, local-only commands) observes a zero-value Instructions and prints nothing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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