cobrafy

package
v0.6.0 Latest Latest
Warning

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

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

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.

Jump to

Keyboard shortcuts

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