Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindConfigFileUp ¶
func ResolveProjectID ¶
Returns the project ID from the environment or config file. Searches from the directory of each of the files.
func WorkingDirectories ¶
Returns all directories for any files. If no files are specified then the current working directory is returned. Special handling for stdin is also included by assuming the current working directory.
Types ¶
type ProjectConfig ¶
type ProjectConfig struct {
ID string `json:"id" yaml:"id"`
}
func ReadConfig ¶
func ReadConfig(cwd string) (*ProjectConfig, string, error)
Click to show internal directories.
Click to hide internal directories.