distcmd

package
v0.33.11 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package distcmd implements the `d8 dist` command tree - management of the d8 distribution: the deckhouse-cli binary itself and its plugins.

d8 dist status     summary: the d8 version, plugins, what is outdated
d8 dist check      report whether a newer deckhouse-cli is available
d8 dist update     update the deckhouse-cli binary
d8 dist use        switch the deckhouse-cli binary to a specific version
d8 dist versions   list deckhouse-cli versions published in the registry
d8 dist plugins    the plugins subtree (implemented in internal/plugins/cmd)

The package holds only the command layer. The binary version machinery (store, updater) lives in internal/selfupdate; the plugins machinery in internal/plugins.

File layout: dist.go assembles the tree, one command per file (check.go, status.go, update.go, use.go, versions.go), updater.go builds the shared Updater, ui.go holds the output palette.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(logger *dkplog.Logger, builtinCommands []string) *cobra.Command

NewCommand returns the `d8 dist` command tree - management of the d8 distribution: the deckhouse-cli binary itself and its plugins. It reaches the registry-packages-proxy with the caller's kubeconfig identity. builtinCommands are built-in command names that satisfy a plugin dependency of the same name (see pluginscmd.NewCommand).

Types

This section is empty.

Directories

Path Synopsis
Package errdetect maps registry-packages-proxy failures from `d8 dist` to HelpfulErrors with CLI-specific guidance.
Package errdetect maps registry-packages-proxy failures from `d8 dist` to HelpfulErrors with CLI-specific guidance.

Jump to

Keyboard shortcuts

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