clitree

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package clitree is the CLI's command tree, shared by its shell completions and the control plane's web CLI console allowlist.

Index

Constants

This section is empty.

Variables

View Source
var Tree = map[string]*Node{}/* 152 elements not displayed */

Tree mirrors every CLI dispatch switch; the CLI's drift test keeps them in sync.

Functions

func SimpleVerbs

func SimpleVerbs() []string

SimpleVerbs returns the short-help verbs in display order.

Types

type Node

type Node struct {
	Subs map[string]*Node
}

Node is one command: the verbs it accepts, and their own sub-verbs.

type Tier

type Tier string

Tier says whether a top-level verb shows in the short help or only in the advanced list.

const (
	TierSimple   Tier = "simple"
	TierAdvanced Tier = "advanced"
)

Help tiers: simple verbs cover a single-server user's day, advanced is everything else.

func TierOf

func TierOf(verb string) Tier

TierOf reports the help tier of a top-level verb.

Jump to

Keyboard shortcuts

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