{"repo":"alecthomas/kong","free":true,"listed":false,"github":"https://github.com/alecthomas/kong","clone":"git clone https://github.com/alecthomas/kong.git","description":"Kong is a command-line parser for Go","language":"Go","stars":3158,"topics":["go","golang","command-line","parser","commands","flags","tags","struct"],"license":"MIT","category":"cli-tools","readme_excerpt":"Kong is a command-line parser for Go - Version 1.0.0 Release - Introduction - Help - Help as a user of a Kong application - Defining help in Kong - Command handling - Switch on the command string - Attach a Run(...) error method to each command - Hooks: BeforeReset(), BeforeResolve(), BeforeApply(), AfterApply() - The Bind() option - Flags - Commands and sub-commands - Branching positional arguments - Positional arguments - Slices - Maps - Pointers - Nested data structure - Custom named decoders - Supported field types - Custom decoders (mappers) - Supported tags - Plugins - Dynamic Commands - Variable interpolation - Validation - Modifying Kong's behaviour - Name(help) and Description(help) - set the application name description - Configuration(loader, paths...) - load defaults from configuration files - Resolver(...) - support for default values from external sources - Mapper(...) - customising how the command-line is mapped to Go values - ConfigureHelp(HelpOptions) and Help(HelpFunc) - customising help - Injecting values into Run() methods - Other options Version 1.0.0 Release Kong has been stable for a long time, so it seemed appropriate to cut a 1.0 release. There is one breaking change, #436, which should effect relatively few users. Introduction Kong aims to support arbitrarily complex command-line structures with as little developer effort as possible. To achieve that, command-lines are expressed as Go types, with the structure and tags directing how the command line ","default_branch":null,"files":null,"tree":[],"storefront":"/r/alecthomas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/alecthomas/kong/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}