meta

package
v0.12.8 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveSymlinks(p string) string

ResolveSymlinks takes a path and gets the pointed path if the original one is a symlink.

Types

type App

type App struct {
	Pwd         string       `json:"pwd"`
	Root        string       `json:"root"`
	GoPath      string       `json:"go_path"`
	Name        inflect.Name `json:"name"`
	Bin         string       `json:"bin"`
	PackagePkg  string       `json:"package_path"`
	ActionsPkg  string       `json:"actions_path"`
	ModelsPkg   string       `json:"models_path"`
	GriftsPkg   string       `json:"grifts_path"`
	VCS         string       `json:"vcs"`
	WithPop     bool         `json:"with_pop"`
	WithSQLite  bool         `json:"with_sqlite"`
	WithDep     bool         `json:"with_dep"`
	WithWebpack bool         `json:"with_webpack"`
	WithYarn    bool         `json:"with_yarn"`
	WithDocker  bool         `json:"with_docker"`
	WithGrifts  bool         `json:"with_grifts"`
}

App represents meta data for a Buffalo application on disk

func New

func New(root string) App

New App based on the details found at the provided root path

func (App) BuildTags added in v0.12.1

func (a App) BuildTags(env string, tags ...string) BuildTags

BuildTags combines the passed in env, and any additional tags, with tags that Buffalo decides the build process requires. An example would be adding the "sqlite" build tag if using SQLite3.

func (App) String

func (a App) String() string

type BuildTags added in v0.12.1

type BuildTags []string

BuildTags are tags used for building apps

func (BuildTags) String added in v0.12.1

func (t BuildTags) String() string

String returns the tags in the form of: "foo bar baz" (with the quotes!)

Jump to

Keyboard shortcuts

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