mangokong

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: MIT Imports: 5 Imported by: 4

README

Mango (man page generator) integration for Kong

This package allows Kong packages to generate man pages using Mango.

Simply add mangokong.ManFlag to your CLI struct:

var cli struct {
	Man mangokong.ManFlag `help:"Write man page."`
}

Example

This is what the included example looks like:

example.1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManPage

func NewManPage(section uint, app *kong.Application) *mango.ManPage

NewManPage from a Kong Application.

Types

type ManFlag

type ManFlag bool

ManFlag can be used as a Kong flag that will write a default man page to stdout.

func (ManFlag) BeforeApply

func (m ManFlag) BeforeApply(app *kong.Kong) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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