cli

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Overview

Package cli defines CLI annotation keys, XML attribute names, and confirmation input constants.

Index

Constants

View Source
const (
	// AttrType is the "type" attribute on a context-update tag.
	AttrType = "type"
	// AttrContext is the "context" attribute on a context-update tag.
	AttrContext = "context"
	// AttrLesson is the "lesson" attribute on a context-update tag.
	AttrLesson = "lesson"
	// AttrApplication is the "application" attribute on a context-update tag.
	AttrApplication = "application"
	// AttrRationale is the "rationale" attribute on a context-update tag.
	AttrRationale = "rationale"
	// AttrConsequence is the "consequence" attribute on a context-update tag.
	AttrConsequence = "consequence"
)

XML attribute name constants for context-update tag parsing.

View Source
const (
	// ConfirmShort is the short affirmative response for y/N prompts.
	ConfirmShort = "y"
	// ConfirmLong is the long affirmative response for y/N prompts.
	ConfirmLong = "yes"
)

User confirmation input values.

View Source
const AnnotationSkipInit = "skipInitCheck"

AnnotationSkipInit is the cobra.Command annotation key that exempts a command from the PersistentPreRunE initialization guard.

View Source
const AnnotationTrue = "true"

AnnotationTrue is the canonical value for boolean cobra annotations.

View Source
const Binary = "ctx"

Binary is the ctx executable name used for PATH validation.

View Source
const CmdCompletion = "completion"

CmdCompletion is the cobra completion subcommand name.

View Source
const StdinSentinel = "-"

StdinSentinel is the conventional argument value meaning "read from stdin".

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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