cobrafy

package
Version: v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(main interface{}) (*cobra.Command, error)

Command takes a struct pointer (optionally with tagged fields), and produces a cobra.Command with flags set up to populate the values of the struct.

func Execute

func Execute(main interface{}) error

Execute creates a cobra.Command using cobrafy.Command and then calls its Execute() method, returning the error.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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