cmdmeta

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 0 Imported by: ? modules, 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 cmdmeta defines CLI command metadata shared between root command wiring and the noodle skill generator. This is the single source of truth for command names and descriptions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Short

func Short(names ...string) string

Short returns the Short description for a command by name path. For top-level: Short("start"). For sub: Short("plan", "create").

Types

type Command

type Command struct {
	Name        string
	Short       string
	Flags       []Flag
	Subcommands []Command
}

Command describes a CLI command or subcommand.

func Commands

func Commands() []Command

Commands returns the full command tree metadata.

type Flag

type Flag struct {
	Name    string // long name (e.g. "once")
	Short   string // short name (e.g. "o"), empty if none
	Type    string // "bool", "string", "int", "float64", "[]string"
	Default string // default value as string, empty if zero
	Desc    string // description
}

Flag describes a CLI flag.

Jump to

Keyboard shortcuts

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