Skip to main content

Interface: InitProject

Defined in: packages/core/src/application/use-cases/init-project.ts:13

Initialises a new specd project by writing specd.yaml, creating storage directories, and updating .gitignore.

Delegates all filesystem operations to the ConfigWriter port.

Methods

execute()

execute(input): Promise<InitProjectResult>

Defined in: packages/core/src/application/use-cases/init-project.ts:32

Executes the use case.

Parameters

input

InitProjectOptions

Initialisation options

Returns

Promise<InitProjectResult>

The path and metadata of the created config

Throws

When specd.yaml already exists and force is not set