kongutil

package module
v0.0.0-...-2b34e3b Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 12 Imported by: 2 modules, 2 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.

README

kongutil

Miscellaneous utility functions for working with github.com/alecthomas/kong

Documentation

Overview

package kongutil provides helper functions for working with the kong parser

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedConfigFormat = errors.New("Unsupported config format")
)

Functions

func Command

func Command(c *kong.Context) string

Command returns the nearest node to this commands command path

func GetMethod

func GetMethod(value reflect.Value, name string) reflect.Value

GetMethod is a copy of the internal method from kong so we can check for run methods

func Hybrid

func Hybrid(r io.Reader) (kong.Resolver, error)

Hybrid returns a Resolver that retrieves values from a supported structured datasource. JSON, YAML and TOML are supported.

Hyphens in flag names are replaced with underscores.

func PathlibMapper

func PathlibMapper() kong.Option

Types

This section is empty.

Jump to

Keyboard shortcuts

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