scaffold

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package scaffold creates new apps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, parent, name string, fw Framework, out io.Writer) (string, error)

Create makes the app name in a new folder under parent and returns the folder. It writes nothing when it fails.

Types

type Framework

type Framework struct{ Version, Dir string }

Framework is the framework an app is created against: a released Version, or a local checkout Dir.

func Detect

func Detect(checkout string) (Framework, error)

Detect returns the framework this aicoded was built with: the version in its build info, or checkout when it was installed from one. It fails with E-CLI-003 when it knows neither.

Jump to

Keyboard shortcuts

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