cmdhelper

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultGroupName = ""

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdHelper

type CmdHelper struct {
	// contains filtered or unexported fields
}

func NewCmdHelper

func NewCmdHelper(root *cobra.Command) *CmdHelper

NewCmdHelper creates an instance of CmdHelper

func (*CmdHelper) Grp

func (c *CmdHelper) Grp(name, flagName string) *cobra.Command

Grp register a flag to a group

func (*CmdHelper) Render

func (c *CmdHelper) Render() *bytes.Buffer

Render generates a help message

Jump to

Keyboard shortcuts

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