Documentation
¶
Overview ¶
Package lang detects a project's language from marker files and maps a language to its dependency, build and test commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Detect ¶
Detect returns the language of the project at root from top-level marker files, falling back to the most common source-file extension, or "" when nothing matches.
func DetectMarkers ¶
DetectMarkers returns the language of the project at root from top-level marker files only, or "" when none match.
Types ¶
type Commands ¶
Commands are the shell commands for one language. Empty fields mean "nothing to run".
func CommandsFor ¶
CommandsFor returns the dependency, build and test commands for language.