template

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package template provides a built-in library of project templates for cloop init. Templates pre-populate goal and tasks, skipping AI decomposition.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Names

func Names() []string

Names returns just the template names.

func NamesString

func NamesString() string

NamesString returns a comma-separated list of template names for help text.

Types

type Template

type Template struct {
	Name        string
	Description string
	Goal        string
	Tasks       []TemplateTask
}

Template is a named, reusable project scaffold.

func All

func All() []*Template

All returns all built-in templates in a stable order.

func Get

func Get(name string) (*Template, error)

Get returns the named template, or an error if not found.

func (*Template) ToPlan

func (t *Template) ToPlan() *pm.Plan

ToPlan converts the template into a pm.Plan ready for execution.

type TemplateTask

type TemplateTask struct {
	Title            string
	Description      string
	Priority         int
	Role             pm.AgentRole
	DependsOn        []int // 1-based indices into the template task list
	EstimatedMinutes int
}

TemplateTask describes a single task within a template.

Jump to

Keyboard shortcuts

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