upgrade

package
v0.46.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 8 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 non-blocking upgrade and account-credit notices from the instructions observed on this invocation's API responses. ConsumeCLIInstructions makes each notice one-shot. The check adds no network request because 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