projectreadme

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package projectreadme scaffolds the per-project README.md at the workspace root. The file is written exactly once — on `maestro init` — and afterwards belongs entirely to the developer. `maestro refresh` never touches it, so any prose, badges, or AI-agent notes the team adds survive.

Index

Constants

View Source
const FileName = "README.md"

FileName is the file this package writes at the project root.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	ProjectName    string
	RepoOwner      string
	Containerized  bool
	HotReload      bool
	UsesDoppler    bool
	DopplerProject string
}

Options carries the project settings needed to render a useful starter README — the project name shows up in the title, and the dev/secrets flags decide which commands to document.

func FromConfig

func FromConfig(cfg config.Config) Options

FromConfig builds Options from the in-memory config the project Init flow already has. It keeps the call site in project.go a one-liner.

type ProjectReadme

type ProjectReadme struct {
	// contains filtered or unexported fields
}

ProjectReadme writes the starter README at a project root.

func New

func New(rootPath string, opts Options) *ProjectReadme

func (*ProjectReadme) Initialize

func (p *ProjectReadme) Initialize() (bool, error)

Initialize writes README.md when the project has none, and is a no-op when one already exists. Reports whether the file was created.

Jump to

Keyboard shortcuts

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