func NewApp() *App {
	return &App{
		Name:         path.Base(os.Args[0]),
		HelpName:     path.Base(os.Args[0]),
		Usage:        "A new cli application",
		UsageText:    "",
		Version:      "0.0.0",
		BashComplete: DefaultAppComplete,
		Action:       helpCommand.Action,
		Compiled:     compileTime(),
		Writer:       os.Stdout,
	}
}
Creates a new cli Application with some reasonable defaults for Name, Usage, Version and Action.
package cli
import (
	"fmt"
	"io"
	"io/ioutil"
	"os"
	"path"
	"time"
)
type App struct {
	Name string
	HelpName string
	Usage string
	UsageText string
	ArgsUsage string
	Version string
	Commands []Command
	Flags []Flag
	EnableBashCompletion bool
	HideHelp bool
	HideVersion bool
	BashComplete func(context *Context)
	Before func(context *Context) error
	After func(context *Context) error
	Action func(context *Context)
	CommandNotFound func(context *Context, command string)
	OnUsageError func(context *Context, err error, isSubcommand bool) error
	Compiled time.Time
	Authors []Author
	Copyright string
	Author string
	Email string
	Writer io.Writer
}
func compileTime() time.Time {
	info, err := os.Stat(os.Args[0])
	if err != nil {
		return time.Now()
	}
	return info.ModTime()
}