removed

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package removed registers hidden stubs for commands that no longer exist, so an old script or muscle memory gets guidance instead of "unknown command".

TODO(remove): drop these stubs in the release after v1.14.0 (#477).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(name, path, guidance string) *cobra.Command

Command returns a hidden command at use that prints guidance and exits with utils.ExitCodeCommandRemoved. guidance may contain serverPlaceholder, which is replaced by the first positional argument of the old invocation.

Flag parsing is disabled so any old argument or flag (-y, --force) still reaches Run; that also routes --help to the same guidance. Run never builds an API client.

func Message

func Message(path, guidance string, args []string) string

Message renders the guidance for a removed command path, naming the server from args when the old invocation gave one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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