Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrProjectRootAlreadyExists = errors.New("project root already exists")
ErrProjectRootAlreadyExists is returned when a project root directory already exists but an attempt is made to create it.
Functions ¶
func CreateNewProject ¶
func CreateNewProject(fs opctx.FS, projectPath string, options *NewProjectOptions) error
CreateNewProject creates a new project at the specified directory path, using the provided options.
func GenerateBasicConfig ¶
func GenerateBasicConfig(projectName string) projectconfig.ConfigFile
GenerateBasicConfig generates a basic project configuration file.
Path defaults are written explicitly into the seed (rather than relying on projectconfig.ProjectInfo.ApplyProjectDefaults at load time) so the user's scaffolded toml clearly shows the directory layout and provides ready-made hooks to customize.
func InitializeProject ¶
func InitializeProject(fs opctx.FS, projectPath string, options *NewProjectOptions) error
InitializeProject initializes project configuration within a given existing directory, using the provided options.
Types ¶
Click to show internal directories.
Click to hide internal directories.