Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindProjectType ¶
func FindProjectType() (ProjectType, *ProjectDetails, error)
FindProjectType detects the programming language/package manager of the current project.
func GetEntryFileOfProject ¶ added in v0.2.1
func GetEntryFileOfProject(pt ProjectType) string
GetEntryFileOfProject gets the entry file of the project
Types ¶
type ProjectDetails ¶
ProjectDetails holds the details of the current project
type ProjectType ¶
type ProjectType string
ProjectType is the type of project
const ( // GoModule is the project type for Go modules GoModule ProjectType = "GoModule" // PythonPoetry is the project type for Python Poetry projects PythonPoetry ProjectType = "PythonPoetry" // RustCargo is the project type for Rust Cargo projects RustCargo ProjectType = "RustCargo" // JsNpm is the project type for Javascript NPM projects JsNpm ProjectType = "JsNpm" // BaseImage is the project type for creating base images BaseImage ProjectType = "BaseImg" // Unknown is the project type for unknown project types Unknown ProjectType = "Unknown" )
Click to show internal directories.
Click to hide internal directories.