Help us shape the future of Go! Take the 2026 Go Developer Survey

delete

package
v1.128.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd(f cmdutils.Factory) *cobra.Command

func NewRmCmd added in v1.128.0

func NewRmCmd(f cmdutils.Factory) *cobra.Command

NewRmCmd returns the deprecated `rm` spelling of delete, kept so existing scripts keep working. Cobra prints the deprecation notice on every invocation; the command is hidden from help (including fang's renderer, which unlike cobra does not hide Deprecated commands), completion, and generated docs, and excluded from MCP tool registration, so the alias is no longer advertised anywhere.

Cobra has no way to deprecate an alias, so this twin command is how the `rm` spelling keeps working while `delete` advertises `del` alone.

Types

This section is empty.

Jump to

Keyboard shortcuts

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