cmdutil

package
v1.40.8 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package cmdutil provides generic cobra command utilities shared across pkg/cmd and its subpackages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindSubCmd

func FindSubCmd(cmd *cobra.Command, names ...string) (*cobra.Command, bool)

FindSubCmd walks cmd's subcommand tree following names in order, returning the matching command and true. Returns nil and false if any name in the path is not found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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