cmd

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 62 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is set at build time via -ldflags.

Functions

func Execute

func Execute()

func FormatTip

func FormatTip(tip content.Tip, markdown, plain bool) string

FormatTip formats a tip for non-interactive output. Returns empty string for the default case (caller uses glamour rendering instead).

func GetVersion

func GetVersion() string

GetVersion returns the current Version (used in tests).

func RootCmd

func RootCmd() *cobra.Command

RootCmd returns the root cobra command. Used in tests.

func SetVersion

func SetVersion(v string)

SetVersion sets Version (used in tests to simulate real builds).

Types

This section is empty.

Jump to

Keyboard shortcuts

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