cli

package
v1.10.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package cli contains runtime helpers for generated HTTP command-line clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasHelpArg

func HasHelpArg(args []string) bool

HasHelpArg reports whether args request Kong context-sensitive help.

func Parse

func Parse(commandLine any, program string, args []string) (string, error)

Parse parses args into commandLine and returns the selected command path.

func UnmarshalJSON

func UnmarshalJSON(data []byte, value any) error

UnmarshalJSON decodes a generated CLI flag using JSON v2 semantics with support for boolean map keys named "true" and "false", including nested maps and named boolean types. Custom JSON and text decoders take precedence.

Types

This section is empty.

Jump to

Keyboard shortcuts

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