myapp

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Main

type Main struct {
	Num     int    `help:"How many does it take?"`
	Vehicle string `help:"What did they get?"`
}

Main has a couple basic fields with tags which will be used to set up flags with the given help strings.

func NewMain

func NewMain() *Main

NewMain makes a Main and sets up the default values (which will be used by commandeer as flag defaults).

func (*Main) Run

func (m *Main) Run() error

Run implements the Runner interface so that commandeer.Run can be used with Main.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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