Discover Packages
github.com/peopleperhour/otto
appfile
detect
package
Version:
v0.0.0-...-b817d9f
Opens a new window with list of versions in this module.
Published: Sep 28, 2015
License: MPL-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
App will detect the application type for the given directory.
type Config struct {
Detectors []*Detector
}
Config is the format of the configuration files
Parse parses the detector config from the given io.Reader.
Due to current internal limitations, the entire contents of the
io.Reader will be copied into memory first before parsing.
ParseDir parses all the files ending in ".hcl" in a directory,
sorted alphabetically.
ParseFile parses the given path as a single detector config.
Merge merges another config into this one. This will modify this
Config object. Detectors in c2 are tried after detectors in this
Config. Conflicts are ignored as lower priority detectors, meaning that
if two detectors are for type "go", both will be tried.
Detector is something that detects a single type.
Detect will return true if this detector matches within the given
directory.
Source Files
¶
Directories
¶
test-fixtures
Click to show internal directories.
Click to hide internal directories.