project

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindConfigFileUp

func FindConfigFileUp(current string) (string, error)

func ResolveProjectID

func ResolveProjectID(id string, files ...string) string

Returns the project ID from the environment or config file. Searches from the directory of each of the files.

func WorkingDirectories

func WorkingDirectories(files ...string) ([]string, error)

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)

Jump to

Keyboard shortcuts

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