Skip to main content

Function: createListDrafts()

Constructs a ListDrafts instance wired with filesystem adapters.

Param

A fully-resolved SpecdConfig or an explicit context object

Param

Filesystem path options; required when configOrContext is a context object

Call Signature

createListDrafts(config): ListDrafts

Defined in: packages/core/src/composition/use-cases/list-drafts.ts:26

Constructs a ListDrafts use case with full project config.

Parameters

config

SpecdConfig

The fully-resolved project configuration

Returns

ListDrafts

The pre-wired use case instance

Call Signature

createListDrafts(context, options): ListDrafts

Defined in: packages/core/src/composition/use-cases/list-drafts.ts:34

Constructs a ListDrafts use case with explicit context and options.

Parameters

context

ListDraftsContext

Domain context for the primary workspace

options

FsListDraftsOptions

Filesystem paths for draft resolution

Returns

ListDrafts

The pre-wired use case instance