Documentation
¶
Overview ¶
Package cmd implements the CLI commands for diffm.
Index ¶
- func Execute()
- func HelpHandler(cmd *cobra.Command, args []string)
- func PrintLongHelp(cmd *cobra.Command)
- func RenderLongHelp(cmd *cobra.Command, colorize bool) string
- func RenderShortHelp(cmd *cobra.Command) string
- func RenderUsage(cmd *cobra.Command) string
- func RootCmd() *cobra.Command
- func UsageHandler(cmd *cobra.Command) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HelpHandler ¶ added in v0.14.0
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
PrintLongHelp renders and pages the full reference manual.
func RenderLongHelp ¶ added in v0.14.0
RenderLongHelp renders the complete reference manual with optional ANSI section styling.
func RenderShortHelp ¶ added in v0.14.0
RenderShortHelp renders a concise, single-screen usage overview and flag table.
func RenderUsage ¶ added in v0.14.0
RenderUsage renders a concise synopsis for syntax or argument errors.
func RootCmd ¶ added in v0.9.0
RootCmd returns the root Cobra command for documentation generation and inspection.
func UsageHandler ¶ added in v0.14.0
UsageHandler renders a compact synopsis on flag syntax or argument errors.
Types ¶
This section is empty.