projectgen

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 10 Imported by: 0

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

type NewProjectOptions

type NewProjectOptions struct{}

Options for creating a new project.

Jump to

Keyboard shortcuts

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