scaffold

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInitialized

func IsInitialized(dir string) bool

IsInitialized returns true when devcell.toml exists in dir.

func Scaffold

func Scaffold(dir string, modelsSnippet string) error

Scaffold writes scaffold files to dir, then generates package.json and pyproject.toml from the [packages] section in devcell.toml. Files that already exist are skipped (idempotent). modelsSnippet is an optional commented-out [models] section for devcell.toml; pass "" to use the default generic example.

func ScaffoldVagrantfile

func ScaffoldVagrantfile(dir, vagrantBox, nixhomePath string) error

ScaffoldVagrantfile writes a Vagrantfile to dir substituting:

  • {{VAGRANT_BOX}} with vagrantBox (empty → falls back to MACOS_BOX env var at runtime)
  • {{NIXHOME_PATH}} with nixhomePath (empty → falls back to NIXHOME_PATH env var at runtime)

Skips writing if a Vagrantfile already exists (idempotent).

Types

This section is empty.

Jump to

Keyboard shortcuts

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