root

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 16 Imported by: 1 module, 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 root builds the kubectl-nv command tree.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(version string, d Deps) *cobra.Command

NewCommand builds the kubectl-nv command tree. version is what the binary reports; the release stamps it through ldflags.

Types

type Deps

type Deps struct {
	Streams    genericiooptions.IOStreams
	Factory    cmd.Factory
	MustGather mustgather.RunFunc

	// ConfigFlags, when non-nil, are the kubectl configuration flags this tree
	// reads its connection from instead of making its own. The MCP server
	// passes the ones its own command line was parsed into, so that every tool
	// call talks to the cluster the server was started against rather than to
	// whatever the environment says when the call arrives.
	ConfigFlags *genericclioptions.ConfigFlags

	// Options, when non-nil, is the state the root fills in and every
	// subcommand reads. A caller that needs to see what parsing produced passes
	// its own; the root makes one otherwise.
	Options *cmd.Options
}

Deps are the seams of the command tree. The zero value talks to a real cluster and runs a real must-gather; tests replace the parts they need to.

Jump to

Keyboard shortcuts

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