scaffold

package
v0.1.5-0...-b5400da Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package scaffold generates the standard Plumtree app layout for `pt new`:

<name>/
  go.mod
  plumtree.json                 committed app manifest
  .gitignore                    ignores local env and deploy metadata
  README.md                     human-facing project quickstart
  AGENTS.md                     agent-facing project instructions
  app/main.go                   the app entrypoint (TUI or CLI)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(parentDir, name string, kind Kind) (string, error)

New scaffolds an app named name of the given kind under parentDir, creating the directory <parentDir>/<name>. It refuses to overwrite an existing non-empty directory. It returns the created project directory.

func NewWithAccess

func NewWithAccess(parentDir, name string, kind Kind, access string) (string, error)

NewWithAccess is the clean scaffold entry point. Access is written into the manifest so deployment never has an implicit public/restricted default.

func ValidateName

func ValidateName(name string) error

ValidateName reports whether name is an acceptable app handle.

Types

type Kind

type Kind string

Kind is the app type.

const (
	TUI Kind = "tui"
	CLI Kind = "cli"
)

Jump to

Keyboard shortcuts

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