templates

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package templates provides utilities for formatting CLI help text. This implementation is inspired by and simplified from kubectl's templates package (k8s.io/kubectl/pkg/util/templates) which is licensed under Apache License 2.0.

Index

Constants

View Source
const Indentation = "  "

Variables

This section is empty.

Functions

func Examples

func Examples(s string) string

Examples formats command examples with proper indentation

func LongDesc

func LongDesc(s string) string

LongDesc formats a command's long description

Types

This section is empty.

Jump to

Keyboard shortcuts

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