cmd

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 29 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 cmd implements the CLI commands for diffm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute runs the CLI and exits on error.

func HelpHandler added in v0.14.0

func HelpHandler(cmd *cobra.Command, args []string)

HelpHandler handles Cobra help requests. Most CLI tools blur -h and --help together into one giant wall of text. We deliberately split them: -h gives a quick cheatsheet that fits on one screen, while --help launches the full reference manual in a pager.

func PrintLongHelp added in v0.14.0

func PrintLongHelp(cmd *cobra.Command)

PrintLongHelp renders and pages the full reference manual.

func RenderLongHelp added in v0.14.0

func RenderLongHelp(cmd *cobra.Command, colorize bool) string

RenderLongHelp renders the complete reference manual with optional ANSI section styling.

func RenderShortHelp added in v0.14.0

func RenderShortHelp(cmd *cobra.Command) string

RenderShortHelp renders a concise, single-screen usage overview and flag table.

func RenderUsage added in v0.14.0

func RenderUsage(cmd *cobra.Command) string

RenderUsage renders a concise synopsis for syntax or argument errors.

func RootCmd added in v0.9.0

func RootCmd() *cobra.Command

RootCmd returns the root Cobra command for documentation generation and inspection.

func UsageHandler added in v0.14.0

func UsageHandler(cmd *cobra.Command) error

UsageHandler renders a compact synopsis on flag syntax or argument errors.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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