projectgen

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLogDir  = "build/logs"
	DefaultWorkDir = "build/work"
)

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 with default paths and settings.

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