Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoApp is the error returned when an app for a requested directory // does not exist. ErrNoApp = errors.New("could not find app.yml at the specified location") )
Functions ¶
func NewAppFile ¶
NewAppFile creates a new "app.yml" file with the given name at the given location.
Types ¶
type App ¶
type App struct { Name string `yaml:"name"` // The name of the app Exclude []string `yaml:"exclude,omitempty"` // File matchers to exclude files from hash generation. Location string `yaml:"-"` // The location of the app, not included in the app file but initialized externally for ease Commands struct { Build config.BuildConfig // Command for building the app Test config.CommandConfig // Command for testing the app Lint config.CommandConfig // Command for linting the app } `yaml:"commands"` // Commands that can be executed against the app Deps deps.AppDeps `yaml:"-"` }
The App a configuration for a single app that is held in the "app.yml" file.
func FindApps ¶
FindApps attempts to find all "app.yml" files in subdirectories of the given path and load them into memory.
Click to show internal directories.
Click to hide internal directories.